summaryrefslogtreecommitdiff
path: root/rust/helpers/security.c
diff options
context:
space:
mode:
authorQianfeng Rong <rongqianfeng@vivo.com>2025-08-28 15:53:58 +0800
committerMark Brown <broonie@kernel.org>2025-08-28 16:07:45 +0200
commit784771cdd77091e7e93b78b5de55006295cc7b8e (patch)
treeebfb481ac64e7aa9015aa9d6bd8a30b5ef2c3598 /rust/helpers/security.c
parentd985b60f47893e8fd43989662111bebe78311cd1 (diff)
ASoC: adau1977: use int type to store negative error codes
Change the 'ret' variable from unsigned int to int to store negative error codes or zero returned by regmap_update_bits(). 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. No effect on runtime. Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Message-ID: <20250828075406.386208-3-rongqianfeng@vivo.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'rust/helpers/security.c')
0 files changed, 0 insertions, 0 deletions