projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e54b9b
)
NFSv4: Fix warning for using 0 as NULL
author
Wei Yongjun
<weiyongjun1@huawei.com>
Thu, 12 Jan 2017 15:39:18 +0000
(15:39 +0000)
committer
Anna Schumaker
<Anna.Schumaker@Netapp.com>
Mon, 30 Jan 2017 18:14:51 +0000
(13:14 -0500)
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>
fs/nfs/nfs4state.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/nfs4state.c
b/fs/nfs/nfs4state.c
index daeb94e3acd49bd6553601bd15adb8f72236825b..8156bad6b441095199878a900e35594863cad571 100644
(file)
--- 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) {