]> www.infradead.org Git - users/hch/misc.git/commitdiff
ASoC: use int type to store negative error codes
authorMark Brown <broonie@kernel.org>
Thu, 28 Aug 2025 19:45:00 +0000 (21:45 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 28 Aug 2025 19:45:00 +0000 (21:45 +0200)
Merge series from Qianfeng Rong <rongqianfeng@vivo.com>:

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.


Trivial merge