diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-02-18 02:01:49 -0800 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-02-19 12:49:19 -0500 |
commit | 1fe62cd0e8076eb6fbd7a3b7d49747f7c4db3a43 (patch) | |
tree | edf29e7815d63bb161ddd2b7457dba0299a9f8b0 /fs | |
parent | 7bc823514601f0d110c03db2c9a883aba289fd5b (diff) |
Subject: lockd: fix sparse warning in svcshare.c
fs/lockd/svcshare.c:74:50: warning: Using plain integer as NULL pointer
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/lockd/svcshare.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/lockd/svcshare.c b/fs/lockd/svcshare.c index 068886de4dda..c42fcf005dea 100644 --- a/fs/lockd/svcshare.c +++ b/fs/lockd/svcshare.c @@ -71,7 +71,7 @@ nlmsvc_unshare_file(struct nlm_host *host, struct nlm_file *file, struct nlm_share *share, **shpp; struct xdr_netobj *oh = &argp->lock.oh; - for (shpp = &file->f_shares; (share = *shpp) != 0; shpp = &share->s_next) { + for (shpp = &file->f_shares; (share = *shpp) != NULL; shpp = &share->s_next) { if (share->s_host == host && nlm_cmp_owner(share, oh)) { *shpp = share->s_next; kfree(share); |