summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2014-10-23 17:56:11 +0200
committerTrond Myklebust <trond.myklebust@primarydata.com>2014-11-24 18:48:14 +0100
commitc1b69b1ca1f5a8669034348cee9e495fde99bf69 (patch)
tree071aff2d59e923f300c3bca834548832ed300189 /fs/nfs/nfs4proc.c
parentLinux 3.18-rc6 (diff)
downloadlinux-c1b69b1ca1f5a8669034348cee9e495fde99bf69.tar.xz
linux-c1b69b1ca1f5a8669034348cee9e495fde99bf69.zip
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/nfs4proc.c')
-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: