]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: Fix signedness of sscanf() arguments
authorTakashi Iwai <tiwai@suse.de>
Thu, 27 Jan 2022 13:57:17 +0000 (14:57 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 28 Jan 2022 08:22:45 +0000 (09:22 +0100)
commitc559e55940fd2872fd5f83e9817d2e3d628a048c
treec9fef775a4bc82010cfa0ba129f169b45a24148f
parent7a0925e8c0742b1b9cbfeda52325709c20cd3073
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: bad599a21da9 ("ALSA: hda: Allow model option to specify PCI SSID alias")
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/20220127135717.31751-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_auto_parser.c