Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2156113iof; Tue, 7 Jun 2022 21:38:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzheKfp9fW9xsrDMy/dfFq3TdG7LSpvkyiZAikljeESLJxNHzPqRRU976qwzDxGl1nPncEh X-Received: by 2002:a17:902:d505:b0:167:6662:c7fe with SMTP id b5-20020a170902d50500b001676662c7femr19345245plg.31.1654663082423; Tue, 07 Jun 2022 21:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654663082; cv=none; d=google.com; s=arc-20160816; b=Tiw3qrC/rFH/m+Em3iAfhyGC0DrKgL2YDHuEQLpeftKM7DHV7Z2nxiQ5Kv2QmZEbx3 lcs9On+Zq9RG6n8fdnD2BZXP6jWUy3xHv/8ekyYMCbSLVBcLlwbexMEpkOT57+h8P9ol ZM4areE0psoCvYEHAuTPLAn6qW9kk4BxnbnHivVWad0qw97adKILkqedeLhCQBdB4Bn3 9keyr1qQJN26XoXVCvAzC2vOljz1ypUnBfq3bY44dcmOqTe1WETshbmg16VDWrNGMYEs i/nc0Da9Wvi+kniwkWkUVcsQMu/K2HlOhrUGNcWZLrz5IkuUqEu1YTP70wuQ2USCHjTg AoiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=b5nQJeLWQa0E2nagfWRHfdNE5tc7e4uLwb6nCO9ke3U=; b=eLNqBrBjbjzuDEhWCpQtuB+Eu3aCzdHyg1jAf+e7fc8FPJjKm59sdr8sV8nRKvf9aR 7W16iFtwTzZBrHWmtkMeaMiXmAK1Q5acqDud/eFqVk26NqZn0UUtTGZxfVSMhp5rk4KO GMukwkigj+GgRGf5zHL4vkBt0D9YUd3jlGkC0X8bmdZer8Y3OYofiJSZUUkJqc+1yHUb FhqZKc9OyPPE6o/D9QQUSWWfaoa7zLM9achakV3gFBvmgsCQ5LycHeD2+9KqjtHpLxVu MgZOW0cQC0HItudR38DDbVVbDWqBsxzFFyK5KavMxlG8wLp3PqfQn0tvf40nr2TYuBMt E9ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Wg7KUYJe; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d3-20020a63a703000000b003ab2440ce56si25782225pgf.207.2022.06.07.21.38.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:38:02 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Wg7KUYJe; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 799A43C0E96; Tue, 7 Jun 2022 21:08:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383802AbiFGWGc (ORCPT + 99 others); Tue, 7 Jun 2022 18:06:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379702AbiFGVGP (ORCPT ); Tue, 7 Jun 2022 17:06:15 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BA1B20FC78; Tue, 7 Jun 2022 11:50:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C2A5EB82391; Tue, 7 Jun 2022 18:50:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A933C385A2; Tue, 7 Jun 2022 18:49:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654627799; bh=e4rQjDbcX7pYuLi/MagzF5WQm9G9+qVy7DrNZMANN00=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wg7KUYJe+KcdapDlENFDpXmeTX8NeR1FjWL1L8+WBsQGkwMPzGm8WB23eVdQAzIYJ Y7KwnglzI9qfMUnIi2O8p5x9hAsH+3Q3XsCJTv6Rxly/yoE0+r5s8vv/oZcDA2vB7I k7JmTuuuZSHitJVDZXHT+SUKiVNvTm+IE4HZXWGI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Dan Carpenter , Kuninori Morimoto , Mark Brown , Sasha Levin Subject: [PATCH 5.18 096/879] ASoC: rsnd: care default case on rsnd_ssiu_busif_err_status_clear() Date: Tue, 7 Jun 2022 18:53:34 +0200 Message-Id: <20220607165005.479481319@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kuninori Morimoto [ Upstream commit b1384d4c95088d01f4266237faabf165d3d605fc ] commit cfb7b8bf1e2d66 ("ASoC: rsnd: tidyup rsnd_ssiu_busif_err_status_clear()") merged duplicate code, but it didn't care about default case, and causes smatch warnings. smatch warnings: sound/soc/sh/rcar/ssiu.c:112 rsnd_ssiu_busif_err_status_clear() \ error: uninitialized symbol 'offset'. sound/soc/sh/rcar/ssiu.c:114 rsnd_ssiu_busif_err_status_clear() \ error: uninitialized symbol 'shift'. This patch cares it. Reported-by: kernel test robot Reported-by: Dan Carpenter Signed-off-by: Kuninori Morimoto Link: https://lore.kernel.org/r/87r15rgn6p.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/sh/rcar/ssiu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/soc/sh/rcar/ssiu.c b/sound/soc/sh/rcar/ssiu.c index 0d8f97633dd2..138f95dd9f4a 100644 --- a/sound/soc/sh/rcar/ssiu.c +++ b/sound/soc/sh/rcar/ssiu.c @@ -102,6 +102,8 @@ bool rsnd_ssiu_busif_err_status_clear(struct rsnd_mod *mod) shift = 1; offset = 1; break; + default: + goto out; } for (i = 0; i < 4; i++) { @@ -120,7 +122,7 @@ bool rsnd_ssiu_busif_err_status_clear(struct rsnd_mod *mod) } rsnd_mod_write(mod, reg, val); } - +out: return error; } -- 2.35.1