arm/omap: simplify conditional
Subsystems (3)
PATCH 1/1 arm/omap: simplify conditional
Simplify conditional: (a || (!a && !b)) => (a || !b)
Signed-off-by Nicolas Kaiser <[email protected]>
--- arch/arm/plat-omap/fb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/plat-omap/fb.c +1 -1
@@ -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;
Signature · 1 line
1.7.2.2
Tomi Valkeinen
AppliedQuoted 4 lines · ext Nicolas Kaiser
Simplify conditional: (a || (!a && !b)) => (a || !b)
Signed-off-by Nicolas Kaiser <[email protected]>---
Thanks, applied.
Tomi