From: Fabian Frederick Date: Tue, 17 Feb 2015 21:46:25 +0000 (-0800) Subject: fs/affs/amigaffs.c: remove else after return X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b4478e3530288503704e1cc701c426174e4550f0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git fs/affs/amigaffs.c: remove else after return else is unnecessary after return -ENAMETOOLONG Signed-off-by: Fabian Frederick Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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] == ':'