Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Fabian Frederick and committed by
Linus Torvalds
b4478e35 f157853e

+1 -2
+1 -2
fs/affs/amigaffs.c
··· 486 486 if (len > AFFSNAMEMAX) { 487 487 if (notruncate) 488 488 return -ENAMETOOLONG; 489 - else 490 - len = AFFSNAMEMAX; 489 + len = AFFSNAMEMAX; 491 490 } 492 491 for (i = 0; i < len; i++) { 493 492 if (name[i] < ' ' || name[i] == ':'