From e1bc37ceafc04dff20a8cdc88ed250941ec2ea92 Mon Sep 17 00:00:00 2001 From: Richard Weinberger Date: Wed, 29 Oct 2014 11:44:45 +0100 Subject: 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 --- drivers/mtd/ubi/fastmap-wl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/mtd/ubi') 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]; } /** -- cgit v1.2.3