mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 07:04:00 +08:00
arm/omap: simplify conditional
Simplify conditional: (a || (!a && !b)) => (a || !b) Signed-off-by: Nicolas Kaiser <nikai@nikai.net> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
This commit is contained in:
parent
e66345297d
commit
e1a75a1aa1
@ -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
|
* type = 0 && paddr = 0, a default don't care case maps to
|
||||||
* the SDRAM type.
|
* the SDRAM type.
|
||||||
*/
|
*/
|
||||||
if (rg->type || (!rg->type && !rg->paddr))
|
if (rg->type || !rg->paddr)
|
||||||
return 0;
|
return 0;
|
||||||
if (ranges_overlap(rg->paddr, rg->size, mem_start, mem_size)) {
|
if (ranges_overlap(rg->paddr, rg->size, mem_start, mem_size)) {
|
||||||
rg->type = mem_type;
|
rg->type = mem_type;
|
||||||
|
Loading…
Reference in New Issue
Block a user