From: Jan Kara Date: Thu, 23 Oct 2014 15:56:11 +0000 (+0200) Subject: nfs: Remove dead case from nfs4_map_errors() X-Git-Tag: v3.19-rc1~143^2~19 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c1b69b1ca1f5a8669034348cee9e495fde99bf69;p=karo-tx-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 Signed-off-by: Trond Myklebust --- 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: