Skip to contentSkip to conversation

+ rtc-rtc-nuc900-use-null-instead-of-0.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Aug 19, 2013 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

Subject: + rtc-rtc-nuc900-use-null-instead-of-0.patch added to -mm tree
To: [email protected]
From: [email protected]
Date: Mon, 19 Aug 2013 16:24:32 -0700

The patch titled
Subject: drivers/rtc/rtc-nuc900.c: use NULL instead of 0
has been added to the -mm tree. Its filename is

     rtc-rtc-nuc900-use-null-instead-of-0.patch

This patch should soon appear at

    http://ozlabs.org/~akpm/mmots/broken-out/rtc-rtc-nuc900-use-null-instead-of-0.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/rtc-rtc-nuc900-use-null-instead-of-0.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Jingoo Han <[email protected]>
Subject: drivers/rtc/rtc-nuc900.c: use NULL instead of 0

check_rtc_access_enable() returns pointer, thus NULL should be used instead of 0 in order to fix the following sparse warning:

drivers/rtc/rtc-nuc900.c:102:16: warning: Using plain integer as NULL pointer

---

 drivers/rtc/rtc-nuc900.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/rtc-nuc900.c renamed from drivers/rtc/rtc-nuc900.c~rtc-rtc-nuc900-use-null-instead-of-0 +1 -1
diff -puN drivers/rtc/rtc-nuc900.c~rtc-rtc-nuc900-use-null-instead-of-0 drivers/rtc/rtc-nuc900.c
@@ -99,7 +99,7 @@ static int *check_rtc_access_enable(stru
 	if (!timeout)
 		return ERR_PTR(-EPERM);
 
-	return 0;
+	return NULL;
 }
 
 static int nuc900_rtc_bcd2bin(unsigned int timereg,

_

Patches currently in -mm which might be from [email protected] are

block-replace-strict_strtoul-with-kstrtoul.patch block-blk-sysfs-replace-strict_strtoul-with-kstrtoul.patch drivers-block-mg_diskc-make-mg_times_out-static.patch mm-replace-strict_strtoul-with-kstrtoul.patch drivers-firmware-google-gsmic-replace-strict_strtoul-with-kstrtoul.patch kernel-replace-strict_strto-with-kstrto.patch rtc-rtc-nuc900-use-null-instead-of-0.patch documentation-replace-strict_strtoul-with-kstrtoul.patch w1-replace-strict_strtol-with-kstrtol.patch
linux-next.patch