[PATCH] xfs: Use memset to initialize structure member.

Dan Carpenter dan.carpenter at oracle.com
Fri Feb 24 01:53:54 CST 2012


On Fri, Feb 24, 2012 at 12:38:42PM +0530, santosh nayak wrote:
> From: Santosh Nayak <santoshprasadnayak at gmail.com>
> 
> Sparse is giving following warning:
> fs/xfs/xfs_bmap.c:4826:41: warning: Using plain integer as NULL pointer.
> 

You could just do:
	struct xfs_bmalloca     bma = {};

But honestly, I'd just leave this one as is.  The xfs people are
grumpy sorts and it's best to not send them these kinds of patches
that don't address a real bug.

regards,
dan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://oss.sgi.com/pipermail/xfs/attachments/20120224/66fdc7b5/attachment.sig>


More information about the xfs mailing list