mirror of
https://github.com/torvalds/linux.git
synced 2026-01-12 00:42:35 +08:00
media: redrat3: use int type to store negative error codes
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>
This commit is contained in:
committed by
Hans Verkuil
parent
fa0f61cc1d
commit
ecba852dc9
@@ -422,7 +422,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)
|
||||
|
||||
Reference in New Issue
Block a user