From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB4BDC433DB for ; Sun, 21 Feb 2021 11:05:09 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4903664E24 for ; Sun, 21 Feb 2021 11:05:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4903664E24 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 8E8991667; Sun, 21 Feb 2021 12:04:17 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8E8991667 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1613905507; bh=19YL9I239qVJsl0oLWYW1RwHZDiR5XCOKdNUFtc7pis=; h=Date:From:To:Subject:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=u+XuOtaAmtpM3uZuSY2BAv0s6/iVvcqn1QDMdG0MXcIKPDTZzdSJGve/pxmkRF8sF g+RFOi1lT8vYftwuNHFNUSHGl9EnPZ1C7ymTRJl22HeL5Z+In6iw5FjGeMToiAdjub JDDvfr21UG8kGkAKl+3rvhYtMUGb5bFILr7wFJMY= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 00AF6F80167; Sun, 21 Feb 2021 12:04:16 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9ABD4F80082; Sun, 21 Feb 2021 12:04:15 +0100 (CET) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 8395BF80082 for ; Sun, 21 Feb 2021 12:04:07 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8395BF80082 Received: by mail-wm1-f46.google.com with SMTP id x16so10868327wmk.3 for ; Sun, 21 Feb 2021 03:04:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Fv1MGWHAHRfBei1NggEG7/yOVNuAnlJ9QR7t+JYrDik=; b=jR5gm4qhxCjHfdHmC9DNOK2s2NUgny32ECrbQbw2hK3xbX/9bdw03M/qHIhbMoaZzI +6bKqWGGp/Bux18IPK17dbrJlZEWJKQuFnrjD9zewMkg6mQFz4WgesJX3BtbcMbbVat0 U1GC4EdayIpSWKGIJ+aMUD+X9Gq3XcgSZ3v8VZBrN4hwFPoE4IdoVRD0Lj+aYUx8Wwa0 u7qdinSMHSrZGOWEIhRQgXmYbYj0yJP18E6ATuhVw/Ufy1K6gIOQl9bFE8xCRT9hA5OI jGaUn4fy6P2OkiMhQHZaoFJ0g34NAJHs4yMRh30nvQmNKkFnK3wK7VbfWtMYsdhaxW0N c/bA== X-Gm-Message-State: AOAM533oNpIi3U8KG6zV0IYppNIgDEYdu0syfYpxWj/Vl9JIB+OrxaCV TR2hHiSEbN7Wue6WHYpwRx8= X-Google-Smtp-Source: ABdhPJyfyWbkmJZfzYi4GbygYNWRV3xqEarldc+RWQBO7zsz8sC3/IvDrHIcF+QxhheKeSWN4r8VGg== X-Received: by 2002:a05:600c:3550:: with SMTP id i16mr14685603wmq.170.1613905447170; Sun, 21 Feb 2021 03:04:07 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id c12sm12750191wru.71.2021.02.21.03.04.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Feb 2021 03:04:06 -0800 (PST) Date: Sun, 21 Feb 2021 12:04:04 +0100 From: Krzysztof Kozlowski To: Pierre-Louis Bossart Subject: Re: [PATCH 4/6] ASoC: samsung: snow: remove useless test Message-ID: <20210221110404.lx34nuac4gjtbzz2@kozik-lap> References: <20210219230918.5058-1-pierre-louis.bossart@linux.intel.com> <20210219230918.5058-5-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210219230918.5058-5-pierre-louis.bossart@linux.intel.com> Cc: tiwai@suse.de, alsa-devel@alsa-project.org, broonie@kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Fri, Feb 19, 2021 at 05:09:16PM -0600, Pierre-Louis Bossart wrote: > cppcheck warning: > > sound/soc/samsung/snow.c:112:2: style:inconclusive: Found duplicate > branches for 'if' and 'else'. [duplicateBranch] > if (rtd->num_codecs > 1) > ^ > sound/soc/samsung/snow.c:114:2: note: Found duplicate branches for > 'if' and 'else'. > else > ^ > sound/soc/samsung/snow.c:112:2: note: Found duplicate branches for > 'if' and 'else'. > if (rtd->num_codecs > 1) > ^ > > Signed-off-by: Pierre-Louis Bossart > --- > sound/soc/samsung/snow.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > Fixes: 7de6b6bc1a58 ("ASoC: samsung: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer") Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof