[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1648545274-14481-1-git-send-email-wangqing@vivo.com>
Date: Tue, 29 Mar 2022 02:14:32 -0700
From: Qing Wang <wangqing@...o.com>
To: dri-devel@...ts.freedesktop.org, linux-fbdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Wang Qing <wangqing@...o.com>
Subject: [PATCH] video: fbdev: use if else instead
From: Wang Qing <wangqing@...o.com>
use if and else instead of consequent if(A) and if (!A)
Signed-off-by: Wang Qing <wangqing@...o.com>
---
drivers/video/fbdev/pxafb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
mode change 100644 => 100755 drivers/video/fbdev/pxafb.c
diff --git a/drivers/video/fbdev/pxafb.c b/drivers/video/fbdev/pxafb.c
index f1551e0..8ad91c2
--- 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;
--
2.7.4
Powered by blists - more mailing lists