Message ID | 20180504201606.GA22737@lkp-wsm-ep1 (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
--- a/drivers/acpi/acpi_apd.c +++ b/drivers/acpi/acpi_apd.c @@ -111,10 +111,7 @@ static int st_misc_setup(struct apd_priv clkdev = platform_device_register_data(&adev->dev, "clk-st", PLATFORM_DEVID_NONE, clk_data, sizeof(*clk_data)); - if (IS_ERR(clkdev)) - return PTR_ERR(clkdev); - - return 0; + return PTR_ERR_OR_ZERO(clkdev); } static const struct apd_device_desc cz_i2c_desc = {