diff options
author | Richard Weinberger <richard@nod.at> | 2014-10-29 11:44:45 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-03-26 22:47:37 +0100 |
commit | e1bc37ceafc04dff20a8cdc88ed250941ec2ea92 (patch) | |
tree | 043db37bef7c4e34a353e598f9d4ad2af8c3dd5a /drivers/mtd | |
parent | 2f84c2469e2f2e94a45d86597baec10bfbf06847 (diff) | |
download | linux-e1bc37ceafc04dff20a8cdc88ed250941ec2ea92.tar.bz2 |
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/ubi/fastmap-wl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/ubi/fastmap-wl.c b/drivers/mtd/ubi/fastmap-wl.c index c4717531b24c..7a72af2ec4ec 100644 --- a/drivers/mtd/ubi/fastmap-wl.c +++ b/drivers/mtd/ubi/fastmap-wl.c @@ -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]; } /** |