Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57705C6FD1E for ; Tue, 7 Mar 2023 12:52:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229809AbjCGMwg (ORCPT ); Tue, 7 Mar 2023 07:52:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229806AbjCGMwZ (ORCPT ); Tue, 7 Mar 2023 07:52:25 -0500 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E2F17EA29 for ; Tue, 7 Mar 2023 04:52:07 -0800 (PST) Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 5C5CB3F828 for ; Tue, 7 Mar 2023 12:52:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1678193526; bh=nmWr6ekGjQZxJ+Q7zdHZXafHGNlXxBrbViGkz8bn1+c=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=HW4d0JXq8/NOQpK+uYGqtLow9FuTQ0hec+KBDX0jbd3ron+mwaz/ZZ/kt1UEqF5+L BvwY+XN/SH3QEBLn4rvul478UcfBrM6S27xWZHk81tvGUqVEMU7rLpy9LfaoXXnlzO KzcAVjGv3mwRx2l11+ogLbjQReZN9GnYBHHAaFgxImTO1fseHRAqYg0zHPnmMrUIUc PutfpxWF/RtYVZcm0zuq+R/mwRrkhJAbiyWdB3EBcsfouvHd/6CWk9QXlyjuBA2UwK 4tuxjD10LsKQTVoyIwkySdOV/l3vvQVggsW9nW6br6HO9c+3xkaOFq7dWSnlaEpwyd 8kPpErUXrWQ5g== Received: by mail-qv1-f69.google.com with SMTP id u18-20020a0cec92000000b0056ea549d728so7391576qvo.10 for ; Tue, 07 Mar 2023 04:52:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678193525; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nmWr6ekGjQZxJ+Q7zdHZXafHGNlXxBrbViGkz8bn1+c=; b=JqXUqqYMzXzJBoeVbWLEVFchGpdQHpJtnO4OmYlhboUtnjSYhMIHYeUKksTrkhycK4 H1IM5J2GITW+2CJY3MZAAq/hchoJkIYEwuU6BpxJxjIulyvrn/pNZ/J59MM0gcstw3nB Q2tVL5wtV1XIPISL0YtdaTvLTxGC2UHDSJd39VeauAKV4rWtkzFWAVgJWnfUekZQA1Ns Z6Aca537qZfBvk/gld/QXE3t4KS85Rkl4QXZKvaYpMT74M0V8nJWLlCqA4Zco60d/iqe en6/gk0i78PGa0w/Av31BOe3OO93nes5m+0FlP0WDoRutAYQ2BIN/QVWhIiUL3C/30S4 SlKw== X-Gm-Message-State: AO0yUKW7My49JDIgvcPC2HzH9SrJzwZH1Fp4Cee6A32gbhXWlBk7BOVc 8QUMzmLv2XMu3pCIzWR00fZaN4E4liLIjs8nogtkMqXZ07iul7qI8OUpaywOO7E22Am+IY0eF7K 0CZAWPiFHMwnJcGaUIcf0cfL6cFnpYw96Q48IpuUwoMTIodFeY1+1Vz4uSA== X-Received: by 2002:ad4:4e28:0:b0:56e:b446:34f1 with SMTP id dm8-20020ad44e28000000b0056eb44634f1mr4079235qvb.5.1678193525415; Tue, 07 Mar 2023 04:52:05 -0800 (PST) X-Google-Smtp-Source: AK7set8EvyNc/L3E70dvuWathZFkQOqKVEkT1IIx0wT1ixr8AJw2s+ppYU5aOJDsokfzAi4ghyW4HUFDQpSET1IIO54= X-Received: by 2002:ad4:4e28:0:b0:56e:b446:34f1 with SMTP id dm8-20020ad44e28000000b0056eb44634f1mr4079223qvb.5.1678193525129; Tue, 07 Mar 2023 04:52:05 -0800 (PST) MIME-Version: 1.0 References: <20230307024646.10216-1-william.qiu@starfivetech.com> <20230307024646.10216-3-william.qiu@starfivetech.com> In-Reply-To: <20230307024646.10216-3-william.qiu@starfivetech.com> From: Emil Renner Berthing Date: Tue, 7 Mar 2023 13:51:49 +0100 Message-ID: Subject: Re: [PATCH v5 2/2] mmc: starfive: Add initialization of prev_err To: William Qiu Cc: devicetree@vger.kernel.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Jaehoon Chung , Ulf Hansson , Conor Dooley , linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 7 Mar 2023 at 03:49, William Qiu wrote: > Add a incremental updates to fix a bug that prev_err is uninitialized. > > Signed-off-by: William Qiu > Reported-by: Dan Carpenter Reviewed-by: Emil Renner Berthing > --- > drivers/mmc/host/dw_mmc-starfive.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/dw_mmc-starfive.c b/drivers/mmc/host/dw_mmc-starfive.c > index 40f5969b07a6..dab1508bf83c 100644 > --- a/drivers/mmc/host/dw_mmc-starfive.c > +++ b/drivers/mmc/host/dw_mmc-starfive.c > @@ -51,7 +51,7 @@ static int dw_mci_starfive_execute_tuning(struct dw_mci_slot *slot, > struct dw_mci *host = slot->host; > struct starfive_priv *priv = host->priv; > int rise_point = -1, fall_point = -1; > - int err, prev_err; > + int err, prev_err = 0; > int i; > bool found = 0; > u32 regval; > -- > 2.34.1 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv