[PATCH] staging: media: atomisp: remove unnecessary parentheses
From: Ali Nasrollahi
Date: Fri Jul 31 2026 - 13:46:05 EST
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@xxxxxxxxx>
---
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