mirror of https://gitee.com/openkylin/linux.git
nfs: Remove dead case from nfs4_map_errors()
NFS4ERR_ACCESS has number 13 and thus is matched and returned immediately at the beginning of nfs4_map_errors() and there's no point in checking it later. Coverity-id: 733891 Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
parent
5d01410fe4
commit
c1b69b1ca1
|
@ -158,8 +158,6 @@ static int nfs4_map_errors(int err)
|
|||
return -EACCES;
|
||||
case -NFS4ERR_MINOR_VERS_MISMATCH:
|
||||
return -EPROTONOSUPPORT;
|
||||
case -NFS4ERR_ACCESS:
|
||||
return -EACCES;
|
||||
case -NFS4ERR_FILE_OPEN:
|
||||
return -EBUSY;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue