diff options
author | Richard Weinberger <richard@nod.at> | 2014-10-29 06:44:45 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-03-26 17:47:37 -0400 |
commit | e1bc37ceafc04dff20a8cdc88ed250941ec2ea92 (patch) | |
tree | 043db37bef7c4e34a353e598f9d4ad2af8c3dd5a /drivers/mtd | |
parent | 2f84c2469e2f2e94a45d86597baec10bfbf06847 (diff) |
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) | |||
260 | schedule_work(&ubi->fm_work); | 260 | schedule_work(&ubi->fm_work); |
261 | } | 261 | } |
262 | return NULL; | 262 | return NULL; |
263 | } else { | ||
264 | pnum = pool->pebs[pool->used++]; | ||
265 | return ubi->lookuptbl[pnum]; | ||
266 | } | 263 | } |
264 | |||
265 | pnum = pool->pebs[pool->used++]; | ||
266 | return ubi->lookuptbl[pnum]; | ||
267 | } | 267 | } |
268 | 268 | ||
269 | /** | 269 | /** |