mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-17 23:15:52 +00:00
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…
x
Reference in New Issue
Block a user