[PATCH 0/5] media: use int type to store negative error codes
Qianfeng Rong
rongqianfeng at vivo.com
Wed Aug 27 05:39:08 PDT 2025
The 'ret' variable usually is used to store returns from some functions,
which return either zero on success or negative error codes on failure.
Storing the negative error codes in unsigned type, doesn't cause an issue
at runtime but it's ugly as pants. Change "ret" from u8/u32/unsigned int
to int type. No effect on runtime.
Qianfeng Rong (5):
media: dvb: use int type to store negative error codes
media: i2c: mt9v111: use int type to store negative error codes
media: raspberrypi: use int type to store negative error codes
media: stm32-dcmi: use int type to store negative error codes
media: redrat3: use int type to store negative error codes
drivers/media/dvb-frontends/cxd2841er.c | 3 ++-
drivers/media/dvb-frontends/lgdt330x.c | 4 ++--
drivers/media/i2c/mt9v111.c | 2 +-
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c | 2 +-
drivers/media/platform/st/stm32/stm32-dcmi.c | 4 ++--
drivers/media/rc/redrat3.c | 2 +-
6 files changed, 9 insertions(+), 8 deletions(-)
--
2.34.1
More information about the linux-arm-kernel
mailing list