Commit 619ea229 authored by k00524021's avatar k00524021 Committed by Richard Weinberger

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: default avatarChengsong Ke <kechengsong@huawei.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent f2124007
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment