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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;