提交 b23e868d 编写于 作者: W Wang Qing 提交者: Helge Deller

video: fbdev: pxafb: use if else instead

use if and else instead of consequent if(A) and if (!A)
Signed-off-by: NWang Qing <wangqing@vivo.com>
Signed-off-by: NHelge Deller <deller@gmx.de>
上级 aaf7dbe0
......@@ -2256,10 +2256,10 @@ static int pxafb_probe(struct platform_device *dev)
goto failed;
for (i = 0; i < inf->num_modes; i++)
inf->modes[i] = pdata->modes[i];
} else {
inf = of_pxafb_of_mach_info(&dev->dev);
}
if (!pdata)
inf = of_pxafb_of_mach_info(&dev->dev);
if (IS_ERR_OR_NULL(inf))
goto failed;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册