summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-02-17 22:46:25 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-17 23:34:52 +0100
commitb4478e3530288503704e1cc701c426174e4550f0 (patch)
treed80ee8678e50f59ec53c0753a992c68e447029c0 /fs
parentfs/affs: define AFFSNAMEMAX to replace constant use (diff)
downloadlinux-b4478e3530288503704e1cc701c426174e4550f0.tar.xz
linux-b4478e3530288503704e1cc701c426174e4550f0.zip
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/affs/amigaffs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/affs/amigaffs.c b/fs/affs/amigaffs.c
index 118d782b041f..388da1ea815d 100644
--- 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] == ':'