Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932390Ab3DEFUY (ORCPT ); Fri, 5 Apr 2013 01:20:24 -0400 Received: from cantor2.suse.de ([195.135.220.15]:39402 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751159Ab3DEFUX (ORCPT ); Fri, 5 Apr 2013 01:20:23 -0400 Date: Fri, 05 Apr 2013 07:20:22 +0200 Message-ID: From: Takashi Iwai To: Jiri Slaby Cc: jirislaby@gmail.com, linux-kernel@vger.kernel.org, Jaroslav Kysela Subject: Re: [PATCH 3/5] SOUND: hda_generic, fix uninitialized variable In-Reply-To: <1365107532-32721-3-git-send-email-jslaby@suse.cz> References: <1365107532-32721-1-git-send-email-jslaby@suse.cz> <1365107532-32721-3-git-send-email-jslaby@suse.cz> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.2 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1202 Lines: 42 At Thu, 4 Apr 2013 22:32:10 +0200, Jiri Slaby wrote: > > changed is not initialized in path_power_down_sync, but it is expected > to be false in case no change happened in the loop. So set it to > false. > > Signed-off-by: Jiri Slaby > Cc: Jaroslav Kysela > Cc: Takashi Iwai Thanks, applied. Takashi > --- > sound/pci/hda/hda_generic.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c > index f0a422f..8299e40 100644 > --- a/sound/pci/hda/hda_generic.c > +++ b/sound/pci/hda/hda_generic.c > @@ -751,7 +751,7 @@ EXPORT_SYMBOL_HDA(snd_hda_activate_path); > static void path_power_down_sync(struct hda_codec *codec, struct nid_path *path) > { > struct hda_gen_spec *spec = codec->spec; > - bool changed; > + bool changed = false; > int i; > > if (!spec->power_down_unused || path->active) > -- > 1.8.2 > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/