mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-27 08:14:35 +08:00
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>
This commit is contained in:
parent
f212400783
commit
619ea229e9
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user