mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 13:10:08 +07:00
ASoC: hdac_hdmi: Fix static checker warning for sprintf usage
Use snprintf instead of sprintf to shut the warning. Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com> Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com> Acked-By: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
d956147473
commit
70e97a2d9c
@ -942,7 +942,8 @@ static int hdac_hdmi_create_pin_port_muxs(struct hdac_ext_device *edev,
|
||||
if (!se)
|
||||
return -ENOMEM;
|
||||
|
||||
sprintf(kc_name, "Pin %d port %d Input", pin->nid, port->id);
|
||||
snprintf(kc_name, NAME_SIZE, "Pin %d port %d Input",
|
||||
pin->nid, port->id);
|
||||
kc->name = devm_kstrdup(&edev->hdac.dev, kc_name, GFP_KERNEL);
|
||||
if (!kc->name)
|
||||
return -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user