You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07: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:
committed by
Linus Torvalds
parent
f157853e40
commit
b4478e3530
+1
-2
@@ -486,8 +486,7 @@ affs_check_name(const unsigned char *name, int len, bool notruncate)
|
|||||||
if (len > AFFSNAMEMAX) {
|
if (len > AFFSNAMEMAX) {
|
||||||
if (notruncate)
|
if (notruncate)
|
||||||
return -ENAMETOOLONG;
|
return -ENAMETOOLONG;
|
||||||
else
|
len = AFFSNAMEMAX;
|
||||||
len = AFFSNAMEMAX;
|
|
||||||
}
|
}
|
||||||
for (i = 0; i < len; i++) {
|
for (i = 0; i < len; i++) {
|
||||||
if (name[i] < ' ' || name[i] == ':'
|
if (name[i] < ' ' || name[i] == ':'
|
||||||
|
|||||||
Reference in New Issue
Block a user