]> git.baikalelectronics.ru Git - kernel.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)
commitf1edf6d248cc605b88091e1f72ee7d5cd00ca359
tree0a23feecb67b2acee4027ce8cbc46711976ee158
parentd86ea71cbc4fb2ebc0f0795bc502320620f0c3d1
[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