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 118d782..388da1e 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] == ':'