summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2017-01-12 15:39:18 +0000
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2017-01-30 13:14:51 -0500
commit68e33bd6bbb79819e5cb7bce26559191b144c465 (patch)
treefcc94c0ebe44fb6779c10312d1041d59d37c6fe1 /fs
parent2e54b9b1b0ace6997aa4f9811af0811b2d8160f2 (diff)
downloadlinux-0-day-68e33bd6bbb79819e5cb7bce26559191b144c465.tar.gz
linux-0-day-68e33bd6bbb79819e5cb7bce26559191b144c465.tar.xz
NFSv4: Fix warning for using 0 as NULL
Fixes the following sparse warning: fs/nfs/nfs4state.c:862:60: warning: Using plain integer as NULL pointer Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/nfs4state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index daeb94e3acd49..8156bad6b4410 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -868,7 +868,7 @@ static struct nfs4_lock_state *nfs4_get_lock_state(struct nfs4_state *state, fl_
for(;;) {
spin_lock(&state->state_lock);
- lsp = __nfs4_find_lock_state(state, owner, 0);
+ lsp = __nfs4_find_lock_state(state, owner, NULL);
if (lsp != NULL)
break;
if (new != NULL) {