Commit b23e868d authored by Wang Qing's avatar Wang Qing Committed by Helge Deller

video: fbdev: pxafb: use if else instead

use if and else instead of consequent if(A) and if (!A)
Signed-off-by: default avatarWang Qing <wangqing@vivo.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment