mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
rtc: ds1672: remove unnecessary check
The rtc pointer is already checked earlier, it is not necessary to check it again. Signed-off-by: Alexandre Belloni <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
This commit is contained in:
parent
44c638ce4e
commit
80ba93639b
1 changed files with 0 additions and 3 deletions
|
|
@ -128,9 +128,6 @@ static int ds1672_probe(struct i2c_client *client,
|
|||
if (err)
|
||||
return err;
|
||||
|
||||
if (IS_ERR(rtc))
|
||||
return PTR_ERR(rtc);
|
||||
|
||||
i2c_set_clientdata(client, rtc);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue