projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f157853
)
fs/affs/amigaffs.c: remove else after return
author
Fabian Frederick
<fabf@skynet.be>
Tue, 17 Feb 2015 21:46:25 +0000
(13:46 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 17 Feb 2015 22:34:52 +0000
(14:34 -0800)
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>
fs/affs/amigaffs.c
patch
|
blob
|
history
diff --git
a/fs/affs/amigaffs.c
b/fs/affs/amigaffs.c
index
118d782
..
388da1e
100644
(file)
--- a/
fs/affs/amigaffs.c
+++ b/
fs/affs/amigaffs.c
@@
-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] == ':'