Skip to contentSkip to conversation

rtc: ds1672: remove unnecessary check

PATCH New Alexandre Belloni 1 participant 1 message Aug 18, 2019 Real time clock (RTC)

lore
Share & tools
lore

Alexandre Belloni

author maintainer
#0 lore raw

PATCH 1/1 rtc: ds1672: remove unnecessary check

The rtc pointer is already checked earlier, it is not necessary to check it again.

---
 drivers/rtc/rtc-ds1672.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/rtc/rtc-ds1672.c +0 -3
index e9e8d02743ee..9da84df9f152 100644
@@ -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;
Signature · 1 line
2.21.0