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:
e663452
)
arm/omap: simplify conditional
author
Nicolas Kaiser
<nikai@nikai.net>
Tue, 5 Oct 2010 18:31:54 +0000
(20:31 +0200)
committer
Tomi Valkeinen
<tomi.valkeinen@nokia.com>
Fri, 22 Oct 2010 20:21:05 +0000
(23:21 +0300)
Simplify conditional: (a || (!a && !b)) => (a || !b)
Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
arch/arm/plat-omap/fb.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/plat-omap/fb.c
b/arch/arm/plat-omap/fb.c
index fffc1a0b78a7b03337471e634171d416e513526a..f2a1483bdad94300eb19fe232397154ef40024c6 100644
(file)
--- a/
arch/arm/plat-omap/fb.c
+++ b/
arch/arm/plat-omap/fb.c
@@
-126,7
+126,7
@@
static int set_fbmem_region_type(struct omapfb_mem_region *rg, int mem_type,
* type = 0 && paddr = 0, a default don't care case maps to
* the SDRAM type.
*/
- if (rg->type ||
(!rg->type && !rg->paddr)
)
+ if (rg->type ||
!rg->paddr
)
return 0;
if (ranges_overlap(rg->paddr, rg->size, mem_start, mem_size)) {
rg->type = mem_type;