Skip to contentSkip to conversation

DISCUSSION Ben Myers 1 participant 1 message Feb 24, 2012 Kernel janitors

lore
Share & tools
lore

Ben Myers

author
#0 lore raw

Bcc:
Subject: Re: [PATCH] xfs: Use memset to initialize structure member. Reply-To:
In-Reply-To: <20120224075354.GA3649@mwanda>

Quoted 9 lines · Dan Carpenter
Quoted 5 lines · santosh nayak

From: Santosh Nayak <[email protected]>

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