summaryrefslogtreecommitdiff
path: root/drivers/hwmon/ina2xx.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2015-01-12 14:47:21 +0100
committerGuenter Roeck <linux@roeck-us.net>2015-01-25 21:23:59 -0800
commit71eb7c4c7e6219a484c5185919962a99fb0ddabb (patch)
treeb4106a7cee800cd52f8d8bcc7b7349cc277208f4 /drivers/hwmon/ina2xx.c
parent72a87a47a81e062fc27b7675db33cf29458bc6d2 (diff)
downloadlinux-rt-71eb7c4c7e6219a484c5185919962a99fb0ddabb.tar.gz
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>
Diffstat (limited to 'drivers/hwmon/ina2xx.c')
-rw-r--r--drivers/hwmon/ina2xx.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/hwmon/ina2xx.c b/drivers/hwmon/ina2xx.c
index a16d6a283286..ae110c5386ae 100644
--- a/drivers/hwmon/ina2xx.c
+++ b/drivers/hwmon/ina2xx.c
@@ -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;