From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: duplicated test in sound/soc/codecs/sgtl5000.c Date: Thu, 12 Jan 2012 22:28:02 +0000 Message-ID: <20120112222759.GA23716@opensource.wolfsonmicro.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from opensource.wolfsonmicro.com (opensource.wolfsonmicro.com [80.75.67.52]) by alsa0.perex.cz (Postfix) with ESMTP id A6BF7243B0 for ; Thu, 12 Jan 2012 23:28:04 +0100 (CET) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Julia Lawall , Fabio Estevam , Wolfram Sang , Dong Aisheng , Shawn Guo Cc: alsa-devel@alsa-project.org, lrg@ti.com List-Id: alsa-devel@alsa-project.org On Thu, Jan 12, 2012 at 10:13:24PM +0100, Julia Lawall wrote: > There is a duplicated test in the function sgtl5000_restore_regs in the > file sound/soc/codecs/sgtl5000.c: > /* this regs depends on the others */ > if (reg == SGTL5000_CHIP_ANA_POWER || > reg == SGTL5000_CHIP_CLK_CTRL || > reg == SGTL5000_CHIP_LINREG_CTRL || > reg == SGTL5000_CHIP_LINE_OUT_CTRL || > reg == SGTL5000_CHIP_CLK_CTRL) > continue; > I don't know if some constant other than SGTL5000_CHIP_CLK_CTRL should be > tested, or if the second test should just be deleted. Adding the people who've been working on the driver. Generally this is a good idea when reporting issues like this.