[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_FDF9E162435F21368C39AB61255D2F2C8D08@qq.com>
Date: Sun, 28 Apr 2024 20:19:08 +0800
From: pipishuo <1289151713@...com>
To: dri-devel@...ts.freedesktop.org,
linux-fbdev@...r.kernel.org,
linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org,
1289151713@...com
Subject: [PATCH] staging: fbtft:fixes unnecessary parentheses
This patch fixes the checks reported by checkpatch.pl
for unnecessary parentheses
Signed-off-by: pipishuo <1289151713@...com>
---
drivers/staging/fbtft/fb_ili9320.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/fbtft/fb_ili9320.c b/drivers/staging/fbtft/fb_ili9320.c
index 0be7c2d51548..045275a9bc0b 100644
--- a/drivers/staging/fbtft/fb_ili9320.c
+++ b/drivers/staging/fbtft/fb_ili9320.c
@@ -37,7 +37,8 @@ static int init_display(struct fbtft_par *par)
devcode = read_devicecode(par);
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "Device code: 0x%04X\n",
devcode);
- if ((devcode != 0x0000) && (devcode != 0x9320))
+ if (devcode != 0x0000 &&
+ devcode != 0x9320)
dev_warn(par->info->device,
"Unrecognized Device code: 0x%04X (expected 0x9320)\n",
devcode);
--
2.34.1
Powered by blists - more mailing lists