[PATCH 2/2 v2] Staging:android: Initialise buffer and buffer_size before used

Dan Carpenter dan.carpenter at oracle.com
Mon Feb 27 10:48:29 UTC 2012


On Mon, Feb 27, 2012 at 06:17:51PM +0800, Zhengwang Ruan wrote:
> GCC warns 'buffer' and 'buffer_size' are used with being uninitialized, and
> 'buffer' is used as returned value, and 'buffer_size' is initialized using
> uninitialized_var to clear warning.
> 
> Signed-off-by: Zhengwang Ruan <ruan.zhengwang at gmail.com>

Looks good.

regards,
dan carpenter

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20120227/def6147a/attachment.asc>


More information about the devel mailing list