Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH 0/5] media: use int type to store negative error codes
@ 2025-08-27 12:39 Qianfeng Rong
  2025-08-27 12:39 ` [PATCH 1/5] media: dvb: Use " Qianfeng Rong
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Qianfeng Rong @ 2025-08-27 12:39 UTC (permalink / raw)
  To: Abylay Ospan, Mauro Carvalho Chehab, Sakari Ailus, Jacopo Mondi,
	Tomi Valkeinen, Raspberry Pi Kernel Maintenance, Florian Fainelli,
	Broadcom internal kernel review list, Hugues Fruchet,
	Alain Volmat, Maxime Coquelin, Alexandre Torgue, Sean Young,
	Qianfeng Rong, open list:MEDIA DRIVERS FOR CXD2841ER, open list,
	moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE,
	moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE,
	moderated list:ARM/STM32 ARCHITECTURE

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-08-28  6:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-27 12:39 [PATCH 0/5] media: use int type to store negative error codes Qianfeng Rong
2025-08-27 12:39 ` [PATCH 1/5] media: dvb: Use " Qianfeng Rong
2025-08-27 12:39 ` [PATCH 2/5] media: i2c: mt9v111: fix incorrect type for ret Qianfeng Rong
2025-08-27 12:58   ` Jacopo Mondi
2025-08-27 15:41     ` Qianfeng Rong
2025-08-27 16:24       ` Jacopo Mondi
2025-08-28  2:08         ` Qianfeng Rong
2025-08-28  6:40           ` Jacopo Mondi
2025-08-28  6:43             ` Sakari Ailus
2025-08-28  6:45               ` Sakari Ailus
2025-08-27 12:39 ` [PATCH 3/5] media: raspberrypi: use int type to store negative error codes Qianfeng Rong
2025-08-27 12:39 ` [PATCH 4/5] media: stm32-dcmi: " Qianfeng Rong
2025-08-27 12:39 ` [PATCH 5/5] media: redrat3: " Qianfeng Rong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox