mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
media: redrat3: use int type to store negative error codes
[ Upstream commit ecba852dc9f4993f4f894ea1f352564560e19a3e ] Change "ret" from u8 to int type in redrat3_enable_detector() to store negative error codes or zero returned by redrat3_send_cmd() and usb_submit_urb() - this better aligns with the coding standards and maintains code consistency. No effect on runtime. Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
f18cc90244
commit
42207042a3
1 changed files with 1 additions and 1 deletions
|
|
@ -423,7 +423,7 @@ static int redrat3_send_cmd(int cmd, struct redrat3_dev *rr3)
|
|||
static int redrat3_enable_detector(struct redrat3_dev *rr3)
|
||||
{
|
||||
struct device *dev = rr3->dev;
|
||||
u8 ret;
|
||||
int ret;
|
||||
|
||||
ret = redrat3_send_cmd(RR3_RC_DET_ENABLE, rr3);
|
||||
if (ret != 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue