Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wei Yongjun and committed by
Anna Schumaker
68e33bd6 2e54b9b1

+1 -1
+1 -1
fs/nfs/nfs4state.c
··· 868 868 869 869 for(;;) { 870 870 spin_lock(&state->state_lock); 871 - lsp = __nfs4_find_lock_state(state, owner, 0); 871 + lsp = __nfs4_find_lock_state(state, owner, NULL); 872 872 if (lsp != NULL) 873 873 break; 874 874 if (new != NULL) {