Skip to content

Commit

Permalink
hwmon: (ina2xx) remove an unnecessary dev_get_drvdata() result check
Browse files Browse the repository at this point in the history
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
  • Loading branch information
Bartosz Golaszewski authored and Guenter Roeck committed Jan 26, 2015
1 parent 72a87a4 commit 71eb7c4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/hwmon/ina2xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 71eb7c4

Please sign in to comment.