summaryrefslogtreecommitdiff
path: root/fs/nfs
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2014-10-23 19:56:11 +0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2014-11-24 20:48:14 +0300
commitc1b69b1ca1f5a8669034348cee9e495fde99bf69 (patch)
tree071aff2d59e923f300c3bca834548832ed300189 /fs/nfs
parent5d01410fe4d92081f349b013a2e7a95429e4f2c9 (diff)
downloadlinux-c1b69b1ca1f5a8669034348cee9e495fde99bf69.tar.xz
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>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs4proc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 69dc20a743f9..15d5eb52cde8 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -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: