diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-05-29 22:59:54 +0800 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2019-05-31 09:02:27 +0200 |
commit | a8806581241b69b3ae3199f47412c04de854c53a (patch) | |
tree | e9659d624b0ca4bd2ff91317e598357d66ec7ca9 /drivers/misc/eeprom | |
parent | b20eb4c1f0261eebe6e1b9221c0d6e4048837778 (diff) | |
download | linux-a8806581241b69b3ae3199f47412c04de854c53a.tar.bz2 |
eeprom: at24: Remove set but not used variable 'addr'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/misc/eeprom/at24.c: In function at24_make_dummy_client:
drivers/misc/eeprom/at24.c:514:21: warning: variable addr set but not used [-Wunused-but-set-variable]
It's not used since commit e7308628d0ae ("eeprom:
at24: use devm_i2c_new_dummy_device()")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/misc/eeprom')
-rw-r--r-- | drivers/misc/eeprom/at24.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index ba8e73812644..fa730bb342e8 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -511,13 +511,11 @@ static int at24_make_dummy_client(struct at24_data *at24, unsigned int index, struct regmap_config *regmap_config) { struct i2c_client *base_client, *dummy_client; - unsigned short int addr; struct regmap *regmap; struct device *dev; base_client = at24->client[0].client; dev = &base_client->dev; - addr = base_client->addr + index; dummy_client = devm_i2c_new_dummy_device(dev, base_client->adapter, base_client->addr + index); |