Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934946AbcCPHmj (ORCPT ); Wed, 16 Mar 2016 03:42:39 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:30597 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932423AbcCPHmi (ORCPT ); Wed, 16 Mar 2016 03:42:38 -0400 Date: Wed, 16 Mar 2016 10:42:13 +0300 From: Dan Carpenter To: Jaroslav Kysela Cc: Takashi Iwai , Quentin Lambert , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [patch] ALSA: mixart: silence an uninitialized variable warning Message-ID: <20160316074213.GC12860@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Source-IP: aserv0022.oracle.com [141.146.126.234] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 517 Lines: 17 We could print the uninitialized value of "stat" in the error message. Signed-off-by: Dan Carpenter 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 */