OSDN Git Service

hwmon: (scpi-hwmon) remove redundant continue
authorzhong jiang <zhongjiang@huawei.com>
Fri, 21 Sep 2018 01:30:03 +0000 (09:30 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 11 Oct 2018 03:37:13 +0000 (20:37 -0700)
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>
drivers/hwmon/scpi-hwmon.c

index 7e49da5..111d521 100644 (file)
@@ -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;