All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] leds: turris-omnia: Fix unused variable
@ 2023-09-21 20:50 Marek Behún
  2023-09-22  6:59 ` Lee Jones
  0 siblings, 1 reply; 4+ messages in thread
From: Marek Behún @ 2023-09-21 20:50 UTC (permalink / raw)
  To: Lee Jones, linux-leds; +Cc: Marek Behún

The variable ret is not used in this function.

Fixes: 28350bc0ac77 ("leds: turris-omnia: Do not use SMBUS calls")
Closes: https://lore.kernel.org/linux-leds/202309212215.Yl5VQaSm-lkp@intel.com/T/#u
Signed-off-by: Marek Behún <kabel@kernel.org>
---
 drivers/leds/leds-turris-omnia.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/leds/leds-turris-omnia.c b/drivers/leds/leds-turris-omnia.c
index e1a4629479c5..f27241896970 100644
--- a/drivers/leds/leds-turris-omnia.c
+++ b/drivers/leds/leds-turris-omnia.c
@@ -60,7 +60,6 @@ struct omnia_leds {
 static int omnia_cmd_write_u8(const struct i2c_client *client, u8 cmd, u8 val)
 {
 	u8 buf[2] = { cmd, val };
-	int ret;
 
 	return i2c_master_send(client, buf, sizeof(buf));
 }
-- 
2.41.0


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

end of thread, other threads:[~2023-09-25  7:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-21 20:50 [PATCH] leds: turris-omnia: Fix unused variable Marek Behún
2023-09-22  6:59 ` Lee Jones
2023-09-22 11:16   ` Marek Behún
2023-09-25  7:53     ` Lee Jones

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.