forked from Minki/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>
This commit is contained in:
parent
f157853e40
commit
b4478e3530
@ -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] == ':'
|
||||
|
Loading…
Reference in New Issue
Block a user