diff options
| author | Qianfeng Rong <rongqianfeng@vivo.com> | 2025-08-28 11:13:10 +0300 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2025-08-28 11:35:09 +0300 |
| commit | 4ef353d546cda466fc39b7daca558d7bcec21c09 (patch) | |
| tree | ef4450faea7be1d0f06a6a4e3e62a9b42961c58f /scripts/const_structs.checkpatch | |
| parent | d2de0f8b5a8266eec4611d6b3f580e49d9bfd46c (diff) | |
| download | linux-4ef353d546cda466fc39b7daca558d7bcec21c09.tar.xz | |
ALSA: lx_core: use int type to store negative error codes
Change the 'ret' variable from u16 to int to store negative error codes or
zero returned by lx_message_send_atomic().
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.
Fixes: 02bec4904508 ("ALSA: lx6464es - driver for the digigram lx6464es interface")
Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Link: https://patch.msgid.link/20250828081312.393148-1-rongqianfeng@vivo.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
