]> Gentwo Git Trees - linux/.git/commit
media: redrat3: use int type to store negative error codes
authorQianfeng Rong <rongqianfeng@vivo.com>
Wed, 27 Aug 2025 12:39:13 +0000 (20:39 +0800)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Thu, 11 Sep 2025 06:46:10 +0000 (08:46 +0200)
commitecba852dc9f4993f4f894ea1f352564560e19a3e
tree41c3051c729a1b8148692069c6e96aa4fceae9e9
parentfa0f61cc1d828178aa921475a9b786e7fbb65ccb
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>
drivers/media/rc/redrat3.c