From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754259AbcFUFul (ORCPT ); Tue, 21 Jun 2016 01:50:41 -0400 Received: from mx2.suse.de ([195.135.220.15]:37952 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932480AbcFUFuj (ORCPT ); Tue, 21 Jun 2016 01:50:39 -0400 Date: Tue, 21 Jun 2016 07:49:26 +0200 Message-ID: From: Takashi Iwai To: "Helen Koike" Cc: , , Subject: Re: [PATCH] ALSA: hda - Remove compilation warning In-Reply-To: <1466451751-8013-1-git-send-email-helen.koike@collabora.co.uk> References: <1466451751-8013-1-git-send-email-helen.koike@collabora.co.uk> 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.5 (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=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 20 Jun 2016 21:42:31 +0200, Helen Koike wrote: > > Remove the warning: > warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized] It's a false positive, a compiler problem. Takashi > > Signed-off-by: Helen Koike > --- > sound/hda/hdac_regmap.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/hda/hdac_regmap.c b/sound/hda/hdac_regmap.c > index 87041dd..7be6ca1 100644 > --- a/sound/hda/hdac_regmap.c > +++ b/sound/hda/hdac_regmap.c > @@ -279,7 +279,7 @@ static int hda_reg_write(void *context, unsigned int reg, unsigned int val) > { > struct hdac_device *codec = context; > unsigned int verb; > - int i, bytes, err; > + int i, bytes, err = 0; > int pm_lock = 0; > > if (codec->caps_overwriting) > -- > 1.9.1 > >