projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/drivers/mtd/ubi/fastmap-wl.c
b/drivers/mtd/ubi/fastmap-wl.c
index c4717531b24c87a2e3908af93a3e70d13d522c11..7a72af2ec4ec0e3cde9670fcc1587a4597acbe01 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];
}
/**