* [PATCH -next] NFSv4: Fix warning for using 0 as NULL
@ 2017-01-12 15:39 Wei Yongjun
0 siblings, 0 replies; only message in thread
From: Wei Yongjun @ 2017-01-12 15:39 UTC (permalink / raw)
To: Trond Myklebust, Anna Schumaker; +Cc: Wei Yongjun, linux-nfs
From: Wei Yongjun <weiyongjun1@huawei.com>
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>
---
fs/nfs/nfs4state.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index 26b6b8b..64385b6 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -859,7 +859,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) {
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-12 15:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-12 15:39 [PATCH -next] NFSv4: Fix warning for using 0 as NULL Wei Yongjun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).