Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41a63f18 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Don't handle empty patch files



When an empty string is passed to patch option, the driver should
ignore it.  Otherwise it gets an error by trying to load it.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 11839aed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2703,7 +2703,7 @@ static int __devinit azx_probe(struct pci_dev *pci,
	if (err < 0)
		goto out_free;
#ifdef CONFIG_SND_HDA_PATCH_LOADER
	if (patch[dev]) {
	if (patch[dev] && *patch[dev]) {
		snd_printk(KERN_ERR SFX "Applying patch firmware '%s'\n",
			   patch[dev]);
		err = snd_hda_load_patch(chip->bus, patch[dev]);