Skip to content
Commit bb05a617 authored by Anna Schumaker's avatar Anna Schumaker
Browse files

NFSv4.2: Fix READ_PLUS smatch warnings



Smatch reports:
  fs/nfs/nfs42xdr.c:1131 decode_read_plus() warn: missing error code? 'status'

Which Dan suggests to fix by doing a hardcoded "return 0" from the
"if (segments == 0)" check.

Additionally, smatch reports that the "status = -EIO" assignment is not
used. This patch addresses both these issues.

Reported-by: default avatarkernel test robot <lkp@intel.com>
Reported-by: default avatarDan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/r/202305222209.6l5VM2lL-lkp@intel.com/


Fixes: d3b00a80 ("NFS: Replace the READ_PLUS decoding code")
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent 53663f41
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment