[Top] [All Lists]

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

To: santosh nayak <santoshprasadnayak@xxxxxxxxx>
Subject: Re: [PATCH] xfs: Use memset to initialize structure member.
From: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Date: Fri, 24 Feb 2012 10:53:54 +0300
Cc: bpm@xxxxxxx, elder@xxxxxxxxxx, xfs-masters@xxxxxxxxxxx, xfs@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, kernel-janitors@xxxxxxxxxxxxxxx
In-reply-to: <1330067322-17011-1-git-send-email-santoshprasadnayak@xxxxxxxxx>
References: <1330067322-17011-1-git-send-email-santoshprasadnayak@xxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Fri, Feb 24, 2012 at 12:38:42PM +0530, santosh nayak wrote:
> From: Santosh Nayak <santoshprasadnayak@xxxxxxxxx>
> 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.


Attachment: signature.asc
Description: Digital signature

<Prev in Thread] Current Thread [Next in Thread>