]> git.karo-electronics.de Git - linux-beck.git/commit
max8997_charger: Fix unsigned value for less than zero
authorJonghwan Choi <jhbird.choi@gmail.com>
Fri, 28 Oct 2011 22:56:32 +0000 (07:56 +0900)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Thu, 24 Nov 2011 22:56:21 +0000 (02:56 +0400)
commit44abd774f52999125d499aed17a2f70211c34dcd
treedd1d0c32143831240cc52ef46efd1a1bcb8edada
parent47f0ac2b0a8c7f26b513a2a18045219b030aedf1
max8997_charger: Fix unsigned value for less than zero

The 'val' is a 'unsigned char', so it is never less than zero.

Signed-off-by: Jonghwan Choi <jhbird.choi@gmail.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/max8997_charger.c