Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2499224pxf; Sun, 14 Mar 2021 00:34:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3S59J7SBz/S0pTHOL1cCtE2Mbtco3TBxHxM7oox6bLJopllZwI86CqQlu7KiqN8KtGQQr X-Received: by 2002:a17:906:3444:: with SMTP id d4mr17538428ejb.410.1615710855031; Sun, 14 Mar 2021 00:34:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615710855; cv=none; d=google.com; s=arc-20160816; b=Lpw2xA85u5xCMXPpRwy5NUilAo9OvLUS46z49imjut6aQ73BfXhTdgsSgSFy7WE0Hj VDX9KWJDXzAYzsI9XtC65nEUubJrWcYLsXKXNpGU7kwEAaMuVsaOws+TypTpL5xgdU9c W5kGgVZG3UaXKeVbKjKyxpHPgAXiB/AA3xn4NgQXWFzzH22YH+jQVlsldEehUJ60i5xj DII/Sdi/XJQJSpravvNQQES8UE0Xh9vkwI0XY+Ewdjk7bWdxxCS94QztjBFyLSdngqAS Klue6uhH84bzET2lbZUGpuQ5DP3Ijndo+KassL28mLFsrHblYCUuZs8uhxFrO5kTHbQq FaSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=x9UM+V6FRa4zYP9CZsN3OZBrSaM7yDYJaUpCQmlJhf4=; b=dYRtmRyXaWmcitCzmX29GLYS3JMXM4zpjFH9M1ogLQXDngXOXe7J8AaQEOE0XMN+ZQ PfmJrF/RdfUX71p4+T9Y5yQfhWFJGFkmxnRzVLADtH5UcFqptAxH4ypSNtI7wynvQEmD nip7+tIp2Z9SqalMQq+S6zvmsn20blVY2JnwXcdZsZXc4SfVteyx1SWtnzgD2GCC0hHh O0OFGyI9fcSL886oi3k58AY06C4hUpoUCLA1bxOyENEjQi3JhE7gz7z4xAVIfGUUJ2j0 NrHxPj1YXgHW/f+8iMluv826SYcXJx5EoIMqoKG48xIsB5m+WGaic6Xo8Qu0OSCXbKMe Z0Jw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n4si8308226ejz.464.2021.03.14.00.33.52; Sun, 14 Mar 2021 00:34:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234609AbhCNIck (ORCPT + 99 others); Sun, 14 Mar 2021 04:32:40 -0400 Received: from mx2.suse.de ([195.135.220.15]:50684 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234983AbhCNIc3 (ORCPT ); Sun, 14 Mar 2021 04:32:29 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 4BA5CAB8C; Sun, 14 Mar 2021 08:32:28 +0000 (UTC) Date: Sun, 14 Mar 2021 09:32:28 +0100 Message-ID: From: Takashi Iwai To: Pierre-Louis Bossart Cc: alsa-devel@alsa-project.org, broonie@kernel.org, linux-kernel@vger.kernel.org, Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Kuninori Morimoto Subject: Re: [PATCH 06/23] ASoC: cx2070x: remove duplicate else branch In-Reply-To: <20210312182246.5153-7-pierre-louis.bossart@linux.intel.com> References: <20210312182246.5153-1-pierre-louis.bossart@linux.intel.com> <20210312182246.5153-7-pierre-louis.bossart@linux.intel.com> 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/25.3 (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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 12 Mar 2021 19:22:29 +0100, Pierre-Louis Bossart wrote: > > cppcheck warning: > > sound/soc/codecs/cx2072x.c:1436:10: style:inconclusive: Found > duplicate branches for 'if' and 'else'. [duplicateBranch] > } else if (type & 0x4) { > ^ > sound/soc/codecs/cx2072x.c:1439:5: note: Found duplicate branches for > 'if' and 'else'. > } else { > ^ > sound/soc/codecs/cx2072x.c:1436:10: note: Found duplicate branches for > 'if' and 'else'. > } else if (type & 0x4) { > ^ > > The last two branches do the same thing and can be collapsed together. > > Signed-off-by: Pierre-Louis Bossart Reviewed-by: Takashi Iwai thanks, Takashi