diff options
author | Wang Qing | 2022-03-29 02:14:32 -0700 |
---|---|---|
committer | Helge Deller | 2022-04-04 08:55:23 +0200 |
commit | b23e868d35d572d459e9be4b994a8c709f1a1606 (patch) | |
tree | c4dd87372d1ba11b2e081ea934944107f677f8bf /drivers/video | |
parent | aaf7dbe07385e0b8deb7237eca2a79926bbc7091 (diff) |
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>
Diffstat (limited to 'drivers/video')
-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; |