提交 b4478e35 编写于 作者: F Fabian Frederick 提交者: Linus Torvalds

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

else is unnecessary after return -ENAMETOOLONG
Signed-off-by: NFabian Frederick <fabf@skynet.be>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 f157853e
...@@ -486,8 +486,7 @@ affs_check_name(const unsigned char *name, int len, bool notruncate) ...@@ -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] == ':'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册