Skip to content

Commit

Permalink
drivers/rtc/rtc-nuc900.c: use NULL instead of 0
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Jingoo Han authored and torvalds committed Sep 11, 2013
1 parent 1748cbf commit 0ebbf43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-nuc900.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0ebbf43

Please sign in to comment.