Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4759244yba; Mon, 20 May 2019 03:19:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6TAJExkDvmH6BsMPzx42BZqDPfBmW77EsT1xfstoMGgve9Kpj3Z2oJrqrGmz1UPGQU4Ij X-Received: by 2002:a17:902:bc4b:: with SMTP id t11mr68114032plz.255.1558347599687; Mon, 20 May 2019 03:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558347599; cv=none; d=google.com; s=arc-20160816; b=CbKvwRvogErQMhPuGVu7uwuFsNENsLYRFdqHGUqFEZfCR/LrLpwIgrID6auaGelK5m kCRw53fGYyncemEp1vWrcT/TBdez1pL0eEHDpGXbcBx8/3g9w1EP8FzSW9vXXrpNYDxM LlanU5pHuNJdYZsVd31TFxNT1nnhkXMiHm0hELQMBbrBVgK6DqDfpoIIp98lvLm39QHb IRq9WqwyhAuA3oIrAEbnfuTBWQFYJVp5odUzQSFvtnnD7s+IZLo8UbXDN1HNwkgl1SQu kazNdEmg6zTxw54mXFQHt+jFrBhepMf5avCjMHIX8ZE1lNHZrkpH1jg9cv0gBWFjg9dg PXhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=XRfpXR7HYkSoq5cmVRngMhlgV/d47kmZ9psmkhJMfZE=; b=ItyVZJZsbaorNinCC2izF71nAzS0g+6UggUGT/JNCMxBrFRNyksNQHrJ/OmQ6vFq7X PRa+//e3+GRC0tXg9jf3bly4KllU5hUL597ZrO0ZdzHtGReFTTTB5lL2DFj15Vf1HotC 4hWhHmjIYNi6kAdtw3mw1tyJ8KXjCaUBgDISTah2n4/uk06zWDWZB2XekkLG97z6ntEG TaA0O61TNR1Cmv9lYsIpArWQil1fu2CSt975tQwHeJ533uVAnS5T+aHbwkIhuymL3U4I LubkNHOyCVoXgBy5RbhKjbAbZRSHVSWNP2RL7bfMPLcgivu23b1coYYyEWOTI8kPdipf vjjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=opensource.cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r15si17076825pgi.16.2019.05.20.03.19.44; Mon, 20 May 2019 03:19:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=opensource.cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730908AbfETJGm (ORCPT + 99 others); Mon, 20 May 2019 05:06:42 -0400 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:45410 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730238AbfETJGl (ORCPT ); Mon, 20 May 2019 05:06:41 -0400 Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4K93rBt011872; Mon, 20 May 2019 04:06:30 -0500 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from mail2.cirrus.com (mail2.cirrus.com [141.131.128.20]) by mx0b-001ae601.pphosted.com with ESMTP id 2sjefmt40x-1; Mon, 20 May 2019 04:06:29 -0500 Received: from EDIEX01.ad.cirrus.com (unknown [198.61.84.80]) by mail2.cirrus.com (Postfix) with ESMTP id 5717C605A6A0; Mon, 20 May 2019 04:06:29 -0500 (CDT) Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1591.10; Mon, 20 May 2019 10:06:28 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.1591.10 via Frontend Transport; Mon, 20 May 2019 10:06:28 +0100 Received: from algalon.ad.cirrus.com (algalon.ad.cirrus.com [198.90.251.122]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id AE9F42DB; Mon, 20 May 2019 10:06:28 +0100 (BST) From: Charles Keepax To: CC: , , , , Subject: [PATCH 3/4] mfd: madera: Fix potential uninitialised use of variable Date: Mon, 20 May 2019 10:06:27 +0100 Message-ID: <20190520090628.29061-3-ckeepax@opensource.cirrus.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190520090628.29061-1-ckeepax@opensource.cirrus.com> References: <20190520090628.29061-1-ckeepax@opensource.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=892 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905200066 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stuart Henderson regmap_read won't set val to anything if an ACKed bus fails. Signed-off-by: Stuart Henderson Signed-off-by: Charles Keepax --- drivers/mfd/madera-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/madera-core.c b/drivers/mfd/madera-core.c index 2a77988d04625..1b78c5c844a81 100644 --- a/drivers/mfd/madera-core.c +++ b/drivers/mfd/madera-core.c @@ -139,7 +139,7 @@ EXPORT_SYMBOL_GPL(madera_name_from_type); static int madera_wait_for_boot(struct madera *madera) { ktime_t timeout; - unsigned int val; + unsigned int val = 0; int ret = 0; /* -- 2.11.0