mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
UBI: Fastmap: Remove else after return.
checkpatch.pl complains: WARNING: else is not generally useful after a break or return Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
parent
2f84c2469e
commit
e1bc37ceaf
1 changed files with 3 additions and 3 deletions
|
@ -260,10 +260,10 @@ static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi)
|
|||
schedule_work(&ubi->fm_work);
|
||||
}
|
||||
return NULL;
|
||||
} else {
|
||||
pnum = pool->pebs[pool->used++];
|
||||
return ubi->lookuptbl[pnum];
|
||||
}
|
||||
|
||||
pnum = pool->pebs[pool->used++];
|
||||
return ubi->lookuptbl[pnum];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue