]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: fix some minor sparse warnings
authorDave Chinner <dchinner@redhat.com>
Wed, 13 Nov 2013 06:40:26 +0000 (06:40 +0000)
committerRich Johnston <rjohnston@sgi.com>
Wed, 13 Nov 2013 16:59:09 +0000 (10:59 -0600)
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 <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
libxfs/xfs_bmap.c

index 2d480cc96baae25ea05cb4b53e71daff45e8fded..7336abfa2607ec89ee061b456983ef8993daedb0 100644 (file)
@@ -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 */