projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/fs/affs/amigaffs.c
b/fs/affs/amigaffs.c
index 118d782b041f97bca6066a91ecaa0d1bf76f9a5a..388da1ea815d07dd43af7a856293a4c3c840e400 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] == ':'