summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2014-10-29 11:44:45 +0100
committerRichard Weinberger <richard@nod.at>2015-03-26 22:47:37 +0100
commite1bc37ceafc04dff20a8cdc88ed250941ec2ea92 (patch)
tree043db37bef7c4e34a353e598f9d4ad2af8c3dd5a /drivers
parent2f84c2469e2f2e94a45d86597baec10bfbf06847 (diff)
downloadlinux-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')
-rw-r--r--drivers/mtd/ubi/fastmap-wl.c6
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];
}
/**