Skip to content

Commit

Permalink
hwmon: (scpi-hwmon) remove redundant continue
Browse files Browse the repository at this point in the history
The continue will not truely skip any code. hence it is safe to
remove it.

Signed-off-by: zhong jiang <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
  • Loading branch information
xiongzhongjiang authored and groeck committed Oct 11, 2018
1 parent 0599682 commit 3045b5d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/hwmon/scpi-hwmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3045b5d

Please sign in to comment.