* [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
* Re: [PATCH] staging: media: atomisp: remove unnecessary parentheses
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
0 siblings, 1 reply; 3+ messages in thread
From: Dan Carpenter @ 2026-07-31 21:18 UTC (permalink / raw)
To: Ali Nasrollahi; +Cc: linux-staging, linux-kernel
On Fri, Jul 31, 2026 at 09:03:10PM +0330, Ali Nasrollahi wrote:
> 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>
> ---
How are you even seeing this checkpatch warning? I disabled it
for staging. Just leave it as-is.
You didn't CC the maintainers for this. Next time use:
./scripts/get_maintainer.pl -f drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
regards,
dan carpenter
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: media: atomisp: remove unnecessary parentheses
2026-07-31 21:18 ` Dan Carpenter
@ 2026-08-04 12:54 ` Ali Nasrollahi
0 siblings, 0 replies; 3+ messages in thread
From: Ali Nasrollahi @ 2026-08-04 12:54 UTC (permalink / raw)
To: Dan Carpenter; +Cc: linux-staging, linux-kernel
On 26/08/01 12:18AM, Dan Carpenter wrote:
> On Fri, Jul 31, 2026 at 09:03:10PM +0330, Ali Nasrollahi wrote:
> > 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>
> > ---
>
> How are you even seeing this checkpatch warning? I disabled it
> for staging. Just leave it as-is.
>
> You didn't CC the maintainers for this. Next time use:
> ./scripts/get_maintainer.pl -f drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
Thank you for the reply; I will.
-Ali
^ permalink raw reply [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