diff options
author | zhong jiang <zhongjiang@huawei.com> | 2018-09-21 09:30:03 +0800 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2018-10-10 20:37:13 -0700 |
commit | 3045b5d61a60b606f89e3f26ae8e126a8f12b531 (patch) | |
tree | 6cd2ae15aaee308f32ea760d7c4baaa5e5219c8b /drivers/hwmon | |
parent | 0599682b826ff7bbf9d5804fa37bcef36b0c9404 (diff) | |
download | linux-stable-3045b5d61a60b606f89e3f26ae8e126a8f12b531.tar.gz linux-stable-3045b5d61a60b606f89e3f26ae8e126a8f12b531.tar.bz2 linux-stable-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>
Diffstat (limited to 'drivers/hwmon')
-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; |