[PATCH] hda: fix nid variable warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixed compiler warning with possible uninitialized variable 'nid'.
  CC [M]  /home/mranostay/git/alsa-driver/pci/hda/patch_sigmatel.o/home/mranostay/git/alsa-driver/pci/hda/../../alsa-kernel/pci/hda/patch_sigmatel.c: In function‘stac92xx_parse_auto_config’:/home/mranostay/git/alsa-driver/pci/hda/../../alsa-kernel/pci/hda/patch_sigmatel.c:2815: warning: ‘nid’ may be useduninitialized in this function
Signed-off-by: Matthew Ranostay <mranostay@xxxxxxxxxxxxxxxxx>---
diff --git a/pci/hda/patch_sigmatel.c b/pci/hda/patch_sigmatel.cindex c461baa..f8bfb4c 100644--- a/pci/hda/patch_sigmatel.c+++ b/pci/hda/patch_sigmatel.c@@ -2812,7 +2812,7 @@ static int stac92xx_auto_create_multi_out_ctls(struct hda_codec *codec, 	static const char *chname[4] = { 		"Front", "Surround", NULL /*CLFE*/, "Side" 	};-	hda_nid_t nid;+	hda_nid_t nid = 0; 	int i, err;
 	struct sigmatel_spec *spec = codec->spec;_______________________________________________Alsa-devel mailing listAlsa-devel@xxxxxxxxxxxxxxxxxxxx://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux