mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 07:13:34 +00:00
UBI: Fastmap: Simplify expression
There is no need to compute pnum again. Signed-off-by: Richard Weinberger <richard@nod.at> Acked-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
7d25b361a2
commit
876f9a3487
1 changed files with 1 additions and 1 deletions
|
@ -775,7 +775,7 @@ static int ubi_attach_fastmap(struct ubi_device *ubi,
|
|||
for (j = 0; j < be32_to_cpu(fm_eba->reserved_pebs); j++) {
|
||||
int pnum = be32_to_cpu(fm_eba->pnum[j]);
|
||||
|
||||
if ((int)be32_to_cpu(fm_eba->pnum[j]) < 0)
|
||||
if (pnum < 0)
|
||||
continue;
|
||||
|
||||
aeb = NULL;
|
||||
|
|
Loading…
Reference in a new issue