All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio: adc: qcom-spmi-adc5-gen3: remove redundant OR with zero
@ 2026-03-19  8:57 Giorgi Tchankvetadze
  2026-03-19  9:16 ` Andy Shevchenko
  0 siblings, 1 reply; 5+ messages in thread
From: Giorgi Tchankvetadze @ 2026-03-19  8:57 UTC (permalink / raw)
  To: antoniu.miclaus, lars, Michael.Hennerich, jic23
  Cc: dlechner, nuno.sa, andy, linux-iio, Giorgi Tchankvetadze

The expression 'ADC5_GEN3_CHAN_CONV_REQ | 0' is redundant because
OR-ing any value with zero does nothing. Remove the pointless '| 0'
to simplify the code.

This cleanup has no functional change.

Signed-off-by: Giorgi Tchankvetadze <giorgitchankvetadze1997@gmail.com>
---
 drivers/iio/adc/qcom-spmi-adc5-gen3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/adc/qcom-spmi-adc5-gen3.c b/drivers/iio/adc/qcom-spmi-adc5-gen3.c
index f8168a14b907..b3af28ad729d 100644
--- a/drivers/iio/adc/qcom-spmi-adc5-gen3.c
+++ b/drivers/iio/adc/qcom-spmi-adc5-gen3.c
@@ -144,7 +144,7 @@ static int adc5_gen3_configure(struct adc5_chip *adc,
 	 * Use channel 0 by default for immediate conversion and to indicate
 	 * there is an actual conversion request
 	 */
-	buf[1] = ADC5_GEN3_CHAN_CONV_REQ | 0;
+	buf[1] = ADC5_GEN3_CHAN_CONV_REQ;
 
 	buf[2] = ADC5_GEN3_TIME_IMMEDIATE;
 
-- 
2.52.0


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

end of thread, other threads:[~2026-03-19 19:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-19  8:57 [PATCH] iio: adc: qcom-spmi-adc5-gen3: remove redundant OR with zero Giorgi Tchankvetadze
2026-03-19  9:16 ` Andy Shevchenko
2026-03-19  9:20   ` Andy Shevchenko
2026-03-19  9:58     ` Giorgi Tchankvetadze
2026-03-19 19:50   ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.