From: Richard Weinberger Date: Wed, 29 Oct 2014 10:44:45 +0000 (+0100) Subject: UBI: Fastmap: Remove else after return. X-Git-Tag: v4.14-rc1~5586^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e1bc37ceafc04dff20a8cdc88ed250941ec2ea92;p=platform%2Fkernel%2Flinux-rpi.git 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 --- diff --git a/drivers/mtd/ubi/fastmap-wl.c b/drivers/mtd/ubi/fastmap-wl.c index c471753..7a72af2 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]; } /**