Skip to contentSkip to conversation

drivers-rtc-rtc-pcf2127c-replace-is_err-and-ptr_err-with-ptr_err_or_zero.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 24, 2014 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

Subject: [merged] drivers-rtc-rtc-pcf2127c-replace-is_err-and-ptr_err-with-ptr_err_or_zero.patch removed from -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Fri, 24 Jan 2014 11:02:48 -0800

The patch titled
Subject: drivers/rtc/rtc-pcf2127.c: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
has been removed from the -mm tree. Its filename was
drivers-rtc-rtc-pcf2127c-replace-is_err-and-ptr_err-with-ptr_err_or_zero.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Duan Jiong <[email protected]>
Subject: drivers/rtc/rtc-pcf2127.c: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO

Fix a coccinelle error regarding usage of IS_ERR and PTR_ERR instead of PTR_ERR_OR_ZERO.

---

 drivers/rtc/rtc-pcf2127.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/rtc/rtc-pcf2127.c renamed from drivers/rtc/rtc-pcf2127.c~drivers-rtc-rtc-pcf2127c-replace-is_err-and-ptr_err-with-ptr_err_or_zero +0 -2
diff -puN drivers/rtc/rtc-pcf2127.c~drivers-rtc-rtc-pcf2127c-replace-is_err-and-ptr_err-with-ptr_err_or_zero drivers/rtc/rtc-pcf2127.c
@@ -197,10 +197,7 @@ static int pcf2127_probe(struct i2c_clie
 				pcf2127_driver.driver.name,
 				&pcf2127_rtc_ops, THIS_MODULE);
 
-	if (IS_ERR(pcf2127->rtc))
-		return PTR_ERR(pcf2127->rtc);