]> git.karo-electronics.de Git - linux-beck.git/commit
[media] redrat3: change return argument on redrat3_send_cmd() to int
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 29 Apr 2015 18:00:30 +0000 (15:00 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 1 May 2015 09:10:38 +0000 (06:10 -0300)
commit6948524d577dcad963bcdfcbf6e7d934cd18b8f7
tree0a23feecb67b2acee4027ce8cbc46711976ee158
parent269d91f53fe34b263c0b7735937f3b4ac5f56580
[media] redrat3: change return argument on redrat3_send_cmd() to int

redrat3_send_cmd() can return an error or the read data. However,
it currently returns an u8, as reported by smatch:
drivers/media/rc/redrat3.c:416 redrat3_send_cmd() warn: signedness bug returning '(-12)'

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/rc/redrat3.c