mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-20 17:44:33 +08:00
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:
parent
72a87a47a8
commit
71eb7c4c7e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user