nfsd: remove unnecessary NULL check
We check "state" for NULL on the previous line so it can't be NULL here. No need to check again. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/r/202312031425.LffZTarR-lkp@intel.com/ Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
parent
3587b5c753
commit
3c86e615d1
@ -6575,7 +6575,7 @@ unlock:
|
||||
spin_unlock(&nn->s2s_cp_lock);
|
||||
if (!state)
|
||||
return nfserr_bad_stateid;
|
||||
if (!clp && state)
|
||||
if (!clp)
|
||||
*cps = state;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user