projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1748cbf
)
drivers/rtc/rtc-nuc900.c: use NULL instead of 0
author
Jingoo Han
<jg1.han@samsung.com>
Wed, 11 Sep 2013 21:24:22 +0000
(14:24 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:58:57 +0000
(15:58 -0700)
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
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-nuc900.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/rtc/rtc-nuc900.c
b/drivers/rtc/rtc-nuc900.c
index 22861c5e0c596fff3c87182b1beb1f1c9cdaf109..248653c74b8010e0d942947c4cfddd9549379880 100644
(file)
--- a/
drivers/rtc/rtc-nuc900.c
+++ b/
drivers/rtc/rtc-nuc900.c
@@
-99,7
+99,7
@@
static int *check_rtc_access_enable(struct nuc900_rtc *nuc900_rtc)
if (!timeout)
return ERR_PTR(-EPERM);
- return
0
;
+ return
NULL
;
}
static int nuc900_rtc_bcd2bin(unsigned int timereg,