Message ID | 20181110155720.GA122918@ivb43 |
---|---|
State | Not Applicable |
Headers | show |
Series | rtc: sd3078: fix ptr_ret.cocci warnings | expand |
--- a/drivers/rtc/rtc-sd3078.c +++ b/drivers/rtc/rtc-sd3078.c @@ -245,10 +245,7 @@ static int sd3078_probe(struct i2c_clien sd3078_driver.driver.name, &sd3078_rtc_ops, THIS_MODULE); - if (IS_ERR(sd3078->rtc)) - return PTR_ERR(sd3078->rtc); - - return 0; + return PTR_ERR_OR_ZERO(sd3078->rtc); } static int sd3078_remove(struct i2c_client *client)