mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
hwmon: f75308: Remove unused variable
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 <jonathanh@nvidia.com>
Change-Id: Ib8672b1e9288bb0684bc8bee617b068d01e1fc6d
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2934693
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: Yi-Wei Wang <yiweiw@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
74b186dc9e
commit
0dfc692f7d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user