On Wed Aug 27 20:39:13 2025 +0800, Qianfeng Rong wrote:
> 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 <[email protected]>
> Signed-off-by: Sean Young <[email protected]>
> Signed-off-by: Hans Verkuil <[email protected]>

Patch committed.

Thanks,
Hans Verkuil

 drivers/media/rc/redrat3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

diff --git a/drivers/media/rc/redrat3.c b/drivers/media/rc/redrat3.c
index d89a4cfe3c89..a49173f54a4d 100644
--- a/drivers/media/rc/redrat3.c
+++ b/drivers/media/rc/redrat3.c
@@ -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)

Reply via email to