]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtc rx4581: change err type from unsigned char to int in get_datetime()
authorTorben Hohn <torbenh@linutronix.de>
Thu, 7 Feb 2013 01:27:49 +0000 (12:27 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:47:18 +0000 (16:47 +1100)
commit5cb9e145857e34c2cc3db5630ce43819a7a1da36
treeb39e96adb8ec30342b5e01d82ce0dc4ab7a7aa26
parent6a12887aa69f36d63d473544b3a5c6964b3980e5
rtc rx4581: change err type from unsigned char to int in get_datetime()

in response to these warnings posted by dan.carpenter@oracle.com:

New smatch warnings:
drivers/rtc/rtc-rx4581.c:134 rx4581_get_datetime() warn: unsigned 'err' is never less than zero.

Old smatch warnings:
drivers/rtc/rtc-rx4581.c:175 rx4581_get_datetime() warn: unsigned 'err' is never less than zero.

Signed-off-by: Torben Hohn <torbenh@linutronix.de>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-rx4581.c