Re: [PATCH] iuu_phoenix - new release v0.4 - call for review/comments

Alan Cox <[email protected]>
Newsgroups gmane.linux.usb.devel
Organization Red Hat UK Cyf., Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, Y Deyrnas Gyfunol. Cofrestrwyd yng Nghymru a Lloegr o'r rhif cofrestru 3798903
Message-ID <[email protected]>
 +static int iuu_alloc_buf(struct iuu_private *priv)
> +{
> +	priv->buf = kzalloc(256, GFP_KERNEL);
> +	priv->dbgbuf = kzalloc(256, GFP_KERNEL);
> +	priv->writebuf = kzalloc(256, GFP_KERNEL);
> +	if (!priv->buf || !priv->dbgbuf || !priv->writebuf) {
> +		dbg("%s problem allocation buffer", __FUNCTION__);
> +		return -ENOMEM;
> +	}
> +	return 0;
> +}
> 


Given they have the same lifetime what is wrong with simply putting them
in struct iuu_private as arrays ?


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.