summaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-08-18 23:52:32 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-08-21 09:57:23 +0200
commit80ba93639b5dfde6b7897499b69fefc733a94a59 (patch)
treeea5e42e2f60dba9584eb008c1e13315c20636502 /drivers/rtc
parent44c638ce4ec6fb9d33978348ebb90847b9aa274a (diff)
downloadlinux-80ba93639b5dfde6b7897499b69fefc733a94a59.tar.gz
linux-80ba93639b5dfde6b7897499b69fefc733a94a59.tar.bz2
linux-80ba93639b5dfde6b7897499b69fefc733a94a59.zip
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 <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20190818215232.17320-1-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-ds1672.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-ds1672.c b/drivers/rtc/rtc-ds1672.c
index e9e8d02743ee..9da84df9f152 100644
--- a/drivers/rtc/rtc-ds1672.c
+++ b/drivers/rtc/rtc-ds1672.c
@@ -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;