mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
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 @@ __be32 manage_cpntf_state(struct nfsd_net *nn, stateid_t *st,
|
|||
spin_unlock(&nn->s2s_cp_lock);
|
||||
if (!state)
|
||||
return nfserr_bad_stateid;
|
||||
if (!clp && state)
|
||||
if (!clp)
|
||||
*cps = state;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user