linux-sound.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ASoC: use int type to store negative error codes
@ 2025-08-28  7:53 Qianfeng Rong
  2025-08-28  7:53 ` [PATCH 1/3] ASoC: amd: " Qianfeng Rong
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Qianfeng Rong @ 2025-08-28  7:53 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	Lars-Peter Clausen, Nuno Sá, Srinivas Kandagatla,
	Venkata Prasad Potturu, Vijendar Mukunda, Ingo Molnar,
	Charles Keepax, Mario Limonciello, Peter Zijlstra, Qianfeng Rong,
	open list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...,
	open list, open list:QCOM AUDIO (ASoC) DRIVERS

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.  Additionally, assigning negative error
codes to unsigned type may trigger a GCC warning when the -Wsign-conversion
flag is enabled.

Change "ret" from u32/unsigned int to int type.  No effect on runtime.

Qianfeng Rong (3):
  ASoC: amd: use int type to store negative error codes
  ASoC: adau1977: use int type to store negative error codes
  ASoC: qcom: use int type to store negative error codes

 sound/soc/amd/acp/acp-rembrandt.c | 2 +-
 sound/soc/amd/raven/acp3x-i2s.c   | 3 ++-
 sound/soc/amd/vangogh/acp5x-i2s.c | 3 ++-
 sound/soc/codecs/adau1977.c       | 2 +-
 sound/soc/qcom/lpass-cdc-dma.c    | 3 ++-
 sound/soc/qcom/lpass-hdmi.c       | 2 +-
 6 files changed, 9 insertions(+), 6 deletions(-)

-- 
2.34.1


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

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

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-28  7:53 [PATCH 0/3] ASoC: use int type to store negative error codes Qianfeng Rong
2025-08-28  7:53 ` [PATCH 1/3] ASoC: amd: " Qianfeng Rong
2025-08-28 13:30   ` Limonciello, Mario
2025-08-28  7:53 ` [PATCH 2/3] ASoC: adau1977: " Qianfeng Rong
2025-08-28 10:48   ` Nuno Sá
2025-08-28  7:53 ` [PATCH 3/3] ASoC: qcom: " Qianfeng Rong
2025-08-28 10:32   ` Dmitry Baryshkov
2025-08-28 21:00 ` [PATCH 0/3] ASoC: " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).