hwmon: (ina2xx) remove an unnecessary dev_get_drvdata() result check

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Bartosz Golaszewski 2015-01-12 14:47:21 +01:00 committed by Guenter Roeck
parent 72a87a47a8
commit 71eb7c4c7e

View File

@ -370,9 +370,6 @@ static ssize_t ina226_set_interval(struct device *dev,
unsigned long val;
int status;
if (IS_ERR(data))
return PTR_ERR(data);
status = kstrtoul(buf, 10, &val);
if (status < 0)
return status;