From: zhong jiang Date: Fri, 21 Sep 2018 01:30:03 +0000 (+0800) Subject: hwmon: (scpi-hwmon) remove redundant continue X-Git-Tag: v4.20-rc1~188^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3045b5d61a60b606f89e3f26ae8e126a8f12b531;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/scpi-hwmon.c b/drivers/hwmon/scpi-hwmon.c index 7e49da50bc69b..111d521e21897 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;