projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f84c24
)
UBI: Fastmap: Remove else after return.
author
Richard Weinberger
<richard@nod.at>
Wed, 29 Oct 2014 10:44:45 +0000
(11:44 +0100)
committer
Richard Weinberger
<richard@nod.at>
Thu, 26 Mar 2015 21:47:37 +0000
(22:47 +0100)
checkpatch.pl complains:
WARNING: else is not generally useful after a break or return
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/fastmap-wl.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/ubi/fastmap-wl.c
b/drivers/mtd/ubi/fastmap-wl.c
index
c471753
..
7a72af2
100644
(file)
--- 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];
}
/**