Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Qianfeng Rong and committed by
Hans Verkuil
ecba852d fa0f61cc

+1 -1
+1 -1
drivers/media/rc/redrat3.c
··· 422 422 static int redrat3_enable_detector(struct redrat3_dev *rr3) 423 423 { 424 424 struct device *dev = rr3->dev; 425 - u8 ret; 425 + int ret; 426 426 427 427 ret = redrat3_send_cmd(RR3_RC_DET_ENABLE, rr3); 428 428 if (ret != 0)