mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] hwmon: (hs3001) Fix unused variable compiler warning
@ 2023-07-26 11:36 werneazc
  2023-07-26 12:20 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 5+ messages in thread
From: werneazc @ 2023-07-26 11:36 UTC (permalink / raw)
  To: jdelvare, linux, krzysztof.kozlowski+dt
  Cc: linux-hwmon, linux-kernel, Andre Werner, kernel test robot

From: Andre Werner <andre.werner@systec-electronic.com>

Delete unused variable in drivers probe function.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202307261819.VMDuxZOM-lkp@intel.com/

Signed-off-by: Andre Werner <andre.werner@systec-electronic.com>
---
---
 drivers/hwmon/hs3001.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/hwmon/hs3001.c b/drivers/hwmon/hs3001.c
index 17c3455922eb..9972f6bbb22a 100644
--- a/drivers/hwmon/hs3001.c
+++ b/drivers/hwmon/hs3001.c
@@ -193,7 +193,6 @@ static int hs3001_probe(struct i2c_client *client)
 	struct hs3001_data *data;
 	struct device *hwmon_dev;
 	struct device *dev = &client->dev;
-	int ret;
 
 	if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C))
 		return -EOPNOTSUPP;
-- 
2.41.0


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

end of thread, other threads:[~2023-07-26 13:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-26 11:36 [PATCH] hwmon: (hs3001) Fix unused variable compiler warning werneazc
2023-07-26 12:20 ` Krzysztof Kozlowski
2023-07-26 12:25   ` Krzysztof Kozlowski
2023-07-26 13:06   ` [PATCH v2] " werneazc
2023-07-26 13:43     ` Guenter Roeck

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

all inboxes | Powered by JetHome®