diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-02-17 16:46:25 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-17 17:34:52 -0500 |
commit | b4478e3530288503704e1cc701c426174e4550f0 (patch) | |
tree | d80ee8678e50f59ec53c0753a992c68e447029c0 | |
parent | f157853e407c0611cd6acbc400fa6c7be420b1bd (diff) |
fs/affs/amigaffs.c: remove else after return
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>
-rw-r--r-- | fs/affs/amigaffs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/affs/amigaffs.c b/fs/affs/amigaffs.c index 118d782b041f..388da1ea815d 100644 --- a/fs/affs/amigaffs.c +++ b/fs/affs/amigaffs.c | |||
@@ -486,8 +486,7 @@ affs_check_name(const unsigned char *name, int len, bool notruncate) | |||
486 | if (len > AFFSNAMEMAX) { | 486 | if (len > AFFSNAMEMAX) { |
487 | if (notruncate) | 487 | if (notruncate) |
488 | return -ENAMETOOLONG; | 488 | return -ENAMETOOLONG; |
489 | else | 489 | len = AFFSNAMEMAX; |
490 | len = AFFSNAMEMAX; | ||
491 | } | 490 | } |
492 | for (i = 0; i < len; i++) { | 491 | for (i = 0; i < len; i++) { |
493 | if (name[i] < ' ' || name[i] == ':' | 492 | if (name[i] < ' ' || name[i] == ':' |