fs/affs/amigaffs.c: remove else after return
authorFabian Frederick <fabf@skynet.be>
Tue, 17 Feb 2015 21:46:25 +0000 (13:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 17 Feb 2015 22:34:52 +0000 (14:34 -0800)
else is unnecessary after return -ENAMETOOLONG

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/affs/amigaffs.c

index 118d782b041f97bca6066a91ecaa0d1bf76f9a5a..388da1ea815d07dd43af7a856293a4c3c840e400 100644 (file)
@@ -486,8 +486,7 @@ affs_check_name(const unsigned char *name, int len, bool notruncate)
        if (len > AFFSNAMEMAX) {
                if (notruncate)
                        return -ENAMETOOLONG;
-               else
-                       len = AFFSNAMEMAX;
+               len = AFFSNAMEMAX;
        }
        for (i = 0; i < len; i++) {
                if (name[i] < ' ' || name[i] == ':'