The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] staging: media: atomisp: remove unnecessary parentheses
@ 2026-07-31 17:33 Ali Nasrollahi
  2026-07-31 21:18 ` Dan Carpenter
  0 siblings, 1 reply; 3+ messages in thread
From: Ali Nasrollahi @ 2026-07-31 17:33 UTC (permalink / raw)
  To: linux-staging; +Cc: linux-kernel, Ali Nasrollahi

Remove unnecessary parentheses around comparison expressions in ov2722.c
to be alinged with kernel coding style. This patch is only cosmetic and
does not change the logic.

Signed-off-by: Ali Nasrollahi <A.Nasrolahi01@gmail.com>
---
 drivers/staging/media/atomisp/i2c/atomisp-ov2722.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/media/atomisp/i2c/atomisp-ov2722.c b/drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
index 2c41c496daa6..475bc521651b 100644
--- a/drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
+++ b/drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
@@ -731,7 +731,7 @@ static int ov2722_detect(struct i2c_client *client)
 			OV2722_SC_CMMN_CHIP_ID_L, &low);
 	id = (high << 8) | low;
 
-	if ((id != OV2722_ID) && (id != OV2720_ID)) {
+	if (id != OV2722_ID && id != OV2720_ID) {
 		dev_err(&client->dev, "sensor ID error\n");
 		return -ENODEV;
 	}
-- 
2.55.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-04 12:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-31 17:33 [PATCH] staging: media: atomisp: remove unnecessary parentheses Ali Nasrollahi
2026-07-31 21:18 ` Dan Carpenter
2026-08-04 12:54   ` Ali Nasrollahi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox