[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zz4R8L7493vTJmry@rasomin>
Date: Wed, 20 Nov 2024 16:44:39 +0000
From: Cheolu Choi <ray@...om.in>
To: sudipm.mukherjee@...il.com, teddy.wang@...iconmotion.com, gregkh@...uxfoundation.org, linux-fbdev@...r.kernel.org, linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: [PATCH] staging: sm750fb: Remove unnecessary parentheses
Adhere to Linux kernel coding style.
Reported by checkpatch:
CHECK: Unnecessary parentheses around 'clk_gpio > 31'
CHECK: Unnecessary parentheses around 'data_gpio > 31'
Signed-off-by: Cheolu Choi <ray@...om.in>
---
drivers/staging/sm750fb/ddk750_swi2c.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/sm750fb/ddk750_swi2c.c b/drivers/staging/sm750fb/ddk750_swi2c.c
index 0ef8d4ff2ef9..50e51d730d86 100644
--- a/drivers/staging/sm750fb/ddk750_swi2c.c
+++ b/drivers/staging/sm750fb/ddk750_swi2c.c
@@ -393,7 +393,7 @@ long sm750_sw_i2c_init(unsigned char clk_gpio, unsigned char data_gpio)
* Return 0 if the GPIO pins to be used is out of range. The
* range is only from [0..63]
*/
- if ((clk_gpio > 31) || (data_gpio > 31))
+ if (clk_gpio > 31 || data_gpio > 31)
return -1;
if (sm750_get_chip_type() == SM750LE)
--
2.34.1
Powered by blists - more mailing lists