summaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-04-26 20:57:23 +0200
committerSteven Whitehouse <swhiteho@redhat.com>2014-04-28 10:41:55 +0200
commit5a7c6690c2759d686d2c299402327e92ed92ab6c (patch)
treef92ad1db83d5d6fa369edbb64de22f14fe971ff2 /fs/gfs2
parentGFS2: quotas not being refreshed in gfs2_adjust_quota (diff)
downloadlinux-5a7c6690c2759d686d2c299402327e92ed92ab6c.tar.xz
linux-5a7c6690c2759d686d2c299402327e92ed92ab6c.zip
GFS2: lops.c: replace 0 by NULL for pointers
Sparse warning: fs/gfs2/lops.c:78:29: "warning: Using plain integer as NULL pointer" Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/lops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c
index a294d8d8bcd4..2c1ae861dc94 100644
--- a/fs/gfs2/lops.c
+++ b/fs/gfs2/lops.c
@@ -75,7 +75,7 @@ static void maybe_release_space(struct gfs2_bufdata *bd)
unsigned int index = bd->bd_bh->b_blocknr - gl->gl_name.ln_number;
struct gfs2_bitmap *bi = rgd->rd_bits + index;
- if (bi->bi_clone == 0)
+ if (bi->bi_clone == NULL)
return;
if (sdp->sd_args.ar_discard)
gfs2_rgrp_send_discards(sdp, rgd->rd_data0, bd->bd_bh, bi, 1, NULL);