diff options
author | Wang Qing <wangqing@vivo.com> | 2022-03-29 11:14:32 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2022-04-04 08:55:23 +0200 |
commit | b23e868d35d572d459e9be4b994a8c709f1a1606 (patch) | |
tree | c4dd87372d1ba11b2e081ea934944107f677f8bf | |
parent | video: fbdev: udlfb: properly check endpoint type (diff) | |
download | linux-b23e868d35d572d459e9be4b994a8c709f1a1606.tar.xz linux-b23e868d35d572d459e9be4b994a8c709f1a1606.zip |
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>
-rw-r--r-- | drivers/video/fbdev/pxafb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/pxafb.c b/drivers/video/fbdev/pxafb.c index f1551e00eb12..8ad91c251fe6 100644 --- a/drivers/video/fbdev/pxafb.c +++ b/drivers/video/fbdev/pxafb.c @@ -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; |