]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/rtc/rtc-nuc900.c: use NULL instead of 0
authorJingoo Han <jg1.han@samsung.com>
Wed, 11 Sep 2013 21:24:22 +0000 (14:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:58:57 +0000 (15:58 -0700)
commit21681e72f3826e8629f41ea96ca09a59813dc767
tree30316a8479fc529a2db9d40c0faca501fe3151a7
parentdcdad3c62051d9bd40caab9b9f3ef0b4f4698072
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

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