summaryrefslogtreecommitdiff
path: root/drivers/mtd/ubi/build.c
diff options
context:
space:
mode:
authork00524021 <kechengsong@huawei.com>2020-11-03 19:56:45 +0800
committerRichard Weinberger <richard@nod.at>2020-12-13 21:57:10 +0100
commit619ea229e9b54e65955f8746a31ae15797d297fc (patch)
treee019273485a7b595aee33e16ec9e6c13cd37ffad /drivers/mtd/ubi/build.c
parentf212400783911a2732eaa5022c9157659c85ccc6 (diff)
ubi: Remove useless code in bytes_str_to_int
As a local variable, "endp" is neither refered nor returned after this line "endp += 2", it looks like a useless code, suggest to remove it. Signed-off-by: Chengsong Ke <kechengsong@huawei.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd/ubi/build.c')
-rw-r--r--drivers/mtd/ubi/build.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index e85b04e9716b..46a6dd75e533 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -1351,8 +1351,6 @@ static int bytes_str_to_int(const char *str)
fallthrough;
case 'K':
result *= 1024;
- if (endp[1] == 'i' && endp[2] == 'B')
- endp += 2;
case '\0':
break;
default: