diff options
author | zhong jiang <zhongjiang@huawei.com> | 2018-09-21 03:30:03 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2018-10-11 05:37:13 +0200 |
commit | 3045b5d61a60b606f89e3f26ae8e126a8f12b531 (patch) | |
tree | 6cd2ae15aaee308f32ea760d7c4baaa5e5219c8b | |
parent | hwmon: (nct6775) Add support for NCT6798D (diff) | |
download | linux-3045b5d61a60b606f89e3f26ae8e126a8f12b531.tar.xz linux-3045b5d61a60b606f89e3f26ae8e126a8f12b531.zip |
hwmon: (scpi-hwmon) remove redundant continue
The continue will not truely skip any code. hence it is safe to
remove it.
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r-- | drivers/hwmon/scpi-hwmon.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/hwmon/scpi-hwmon.c b/drivers/hwmon/scpi-hwmon.c index 7e49da50bc69..111d521e2189 100644 --- a/drivers/hwmon/scpi-hwmon.c +++ b/drivers/hwmon/scpi-hwmon.c @@ -286,10 +286,8 @@ static int scpi_hwmon_probe(struct platform_device *pdev) * any thermal zones or if the thermal subsystem is * not configured. */ - if (IS_ERR(z)) { + if (IS_ERR(z)) devm_kfree(dev, zone); - continue; - } } return 0; |