From 0dfc692f7d5cbc4bfb9a3986bb1bbcc9617b2d67 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Tue, 11 Jul 2023 13:36:59 +0100 Subject: [PATCH] hwmon: f75308: Remove unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Building the f75308 driver generates the following warning ... drivers/hwmon/f75308.c: In function ‘f75308_detect’: drivers/hwmon/f75308.c:1034:29: warning: unused variable ‘adapter’ [-Wunused-variable] 1034 | struct i2c_adapter *adapter = client->adapter; | ^~~~~~~ Fix this by removing the unused variable 'adapter'. Bug 4190165 Signed-off-by: Jon Hunter Change-Id: Ib8672b1e9288bb0684bc8bee617b068d01e1fc6d Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2934693 Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-cert Reviewed-by: Yi-Wei Wang Reviewed-by: svcacv GVS: Gerrit_Virtual_Submit --- drivers/hwmon/f75308.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/hwmon/f75308.c b/drivers/hwmon/f75308.c index ef944429..ba9fc2cf 100644 --- a/drivers/hwmon/f75308.c +++ b/drivers/hwmon/f75308.c @@ -1031,7 +1031,6 @@ static int f75308_get_devid(struct i2c_client *client, enum chip *chipid) static int f75308_detect(struct i2c_client *client, struct i2c_board_info *info) { - struct i2c_adapter *adapter = client->adapter; enum chip chipid; const char *name; int status;