Browse Source

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>
Bartosz Golaszewski 10 years ago
parent
commit
71eb7c4c7e
1 changed files with 0 additions and 3 deletions
  1. 0 3
      drivers/hwmon/ina2xx.c

+ 0 - 3
drivers/hwmon/ina2xx.c

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