提交 e1a75a1a 编写于 作者: N Nicolas Kaiser 提交者: Tomi Valkeinen

arm/omap: simplify conditional

Simplify conditional: (a || (!a && !b)) => (a || !b)
Signed-off-by: NNicolas Kaiser <nikai@nikai.net>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@nokia.com>
上级 e6634529
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册