Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1358596

[patch] ALSA: mixart: silence an uninitialized variable warning

From Dan Carpenter <dan.carpenter@oracle.com>
Newsgroups linux.kernel
Subject [patch] ALSA: mixart: silence an uninitialized variable warning
Date 2016-03-16 08:50 +0100
Message-ID <rdeno-5MN-15@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


We could print the uninitialized value of "stat" in the error message.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/sound/pci/mixart/mixart.c b/sound/pci/mixart/mixart.c
index bc81b9f..25c0ddd 100644
--- a/sound/pci/mixart/mixart.c
+++ b/sound/pci/mixart/mixart.c
@@ -132,7 +132,7 @@ static int mixart_set_pipe_state(struct mixart_mgr *mgr,
 	}
 
 	if(start) {
-		u32 stat;
+		u32 stat = 0;
 
 		group_state.pipe_count = 0; /* in case of start same command once again with pipe_count=0 */
 

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[patch] ALSA: mixart: silence an uninitialized variable warning Dan Carpenter <dan.carpenter@oracle.com> - 2016-03-16 08:50 +0100
  Re: [patch] ALSA: mixart: silence an uninitialized variable warning walter harms <wharms@bfs.de> - 2016-03-16 09:30 +0100
  Re: [alsa-devel] [patch] ALSA: mixart: silence an uninitialized variable warning Takashi Iwai <tiwai@suse.de> - 2016-03-16 16:40 +0100

csiph-web