* (no subject)
@ 2012-02-24 16:01 Ben Myers
0 siblings, 0 replies; only message in thread
From: Ben Myers @ 2012-02-24 16:01 UTC (permalink / raw)
To: santosh nayak
Cc: elder, kernel-janitors, linux-kernel, xfs, xfs-masters,
Dan Carpenter
Bcc:
Subject: Re: [PATCH] xfs: Use memset to initialize structure member.
Reply-To:
In-Reply-To: <20120224075354.GA3649@mwanda>
On Fri, Feb 24, 2012 at 10:53:54AM +0300, Dan Carpenter wrote:
> On Fri, Feb 24, 2012 at 12:38:42PM +0530, santosh nayak wrote:
> > From: Santosh Nayak <santoshprasadnayak@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 = {};
Santosh, this aggregate initializer seems cleaner than memset. Do you
mind resending the patch with Dan's suggestion?
Thanks for your contribution. ;)
-Ben
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-02-24 16:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-24 16:01 Ben Myers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox