mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
video: fbdev: pxafb: use if else instead
use if and else instead of consequent if(A) and if (!A) Signed-off-by: Wang Qing <wangqing@vivo.com> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
aaf7dbe073
commit
b23e868d35
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user