Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68e33bd6 authored by Wei Yongjun's avatar Wei Yongjun Committed by Anna Schumaker
Browse files

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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent 2e54b9b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -868,7 +868,7 @@ static struct nfs4_lock_state *nfs4_get_lock_state(struct nfs4_state *state, fl_
	
	
	for(;;) {
	for(;;) {
		spin_lock(&state->state_lock);
		spin_lock(&state->state_lock);
		lsp = __nfs4_find_lock_state(state, owner, 0);
		lsp = __nfs4_find_lock_state(state, owner, NULL);
		if (lsp != NULL)
		if (lsp != NULL)
			break;
			break;
		if (new != NULL) {
		if (new != NULL) {