Commit 0444f827 authored by Takashi Iwai's avatar Takashi Iwai

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: a235d5b8 ("ALSA: hda: Allow model option to specify PCI SSID alias")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/20220127135717.31751-1-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 3da4b740
...@@ -981,7 +981,7 @@ void snd_hda_pick_fixup(struct hda_codec *codec, ...@@ -981,7 +981,7 @@ void snd_hda_pick_fixup(struct hda_codec *codec,
int id = HDA_FIXUP_ID_NOT_SET; int id = HDA_FIXUP_ID_NOT_SET;
const char *name = NULL; const char *name = NULL;
const char *type = NULL; const char *type = NULL;
int vendor, device; unsigned int vendor, device;
if (codec->fixup_id != HDA_FIXUP_ID_NOT_SET) if (codec->fixup_id != HDA_FIXUP_ID_NOT_SET)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment