Commit b4478e35 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

fs/affs/amigaffs.c: remove else after return

else is unnecessary after return -ENAMETOOLONG
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f157853e
......@@ -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] == ':'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment