Skip to content

Commit 0444f82

Browse files
committed
ALSA: hda: Fix signedness of sscanf() arguments
The %x format of sscanf() takes an unsigned int pointer, while we pass a signed int pointer. Practically it's OK, but this may result in a compile warning. Let's fix it. Fixes: a235d5b ("ALSA: hda: Allow model option to specify PCI SSID alias") Reported-by: kernel test robot <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 3da4b74 commit 0444f82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/pci/hda/hda_auto_parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ void snd_hda_pick_fixup(struct hda_codec *codec,
981981
int id = HDA_FIXUP_ID_NOT_SET;
982982
const char *name = NULL;
983983
const char *type = NULL;
984-
int vendor, device;
984+
unsigned int vendor, device;
985985

986986
if (codec->fixup_id != HDA_FIXUP_ID_NOT_SET)
987987
return;

0 commit comments

Comments
 (0)