From: Dave Chinner Date: Wed, 13 Nov 2013 06:40:26 +0000 (+0000) Subject: xfs: fix some minor sparse warnings X-Git-Tag: v3.2.0-alpha2~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=389b3b078ccc03da48d3cc0387fb5c5508e15d0f;p=thirdparty%2Fxfsprogs-dev.git xfs: fix some minor sparse warnings A couple of simple locking annotations and 0 vs NULL warnings. Nothing that changes any code behaviour, just removes build noise. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Signed-off-by: Rich Johnston --- diff --git a/libxfs/xfs_bmap.c b/libxfs/xfs_bmap.c index 2d480cc96..7336abfa2 100644 --- a/libxfs/xfs_bmap.c +++ b/libxfs/xfs_bmap.c @@ -4415,7 +4415,7 @@ xfs_bmapi_write( { struct xfs_mount *mp = ip->i_mount; struct xfs_ifork *ifp; - struct xfs_bmalloca bma = { 0 }; /* args for xfs_bmap_alloc */ + struct xfs_bmalloca bma = { NULL }; /* args for xfs_bmap_alloc */ xfs_fileoff_t end; /* end of mapped file region */ int eof; /* after the end of extents */ int error; /* error return */