Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4775675pxj; Tue, 22 Jun 2021 07:48:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxO5MyPIkA89x4zAxD68WJwwD5RJpwm6E3JQ6bpfr+httnV8pTkctQudOzh9zMckpTM9DCY X-Received: by 2002:a05:6402:280d:: with SMTP id h13mr5467435ede.226.1624373338634; Tue, 22 Jun 2021 07:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624373338; cv=none; d=google.com; s=arc-20160816; b=JizCDP+/njSuyKPsAfb4WEFHlVkk8BKFD/LhRs2OltZnnG6QmTtSHp9YRYBG0wveIU 08KUoFRse1CvrrCm9dE5aGzWIuvia0jFa3ivIGpcgETz5sy3l5yysAUphuaI9/pke26k q2ZVuEiQ+5FQp3rUaKPh7fT2rmckOg5DYZBFvd9FwgDjJQoxkncGAlDU1P8xuj0r6S7J 8a8ctG+KWBdqeKe8KJ4unRy8+Hx6XL1uAG7c/XS1d3IAzunicS/JG8ckT2mGoumeNp3z y5ZUH7hBof3zjRHJHZlzqxthLxdWUiaSKbsq1JUQYicB0eNQdXmaPI9tj1i9sd5hrK6s mcCA== 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 :message-id:date:subject:cc:to:from; bh=fVLqwCQpHJlKeGrTcej2nz2RfhrUBDENcfpVgRQYOXg=; b=ZbHxnyNVZHS3ypg8ZYrfK4VVI0SLlLP/MNOVpKbDHsx8Up6jm161Q7Jq7Mkre3cYeO d5gilYe3eI+heikf3LHsq6hK5buzhmclErrK2NspiJbbceVWrQI+MlBLhJzOb8XnkGow qdHUiWyVEAqB7SPeTPQ+rxrIrZV38vbHtOtMB/lmTOekavEKSnS9RCu9hw4l7Glzyenh WZT0BBqMkWL/b2V1zh2SDLloEdVc3OTBAb1/3oCCGR/t0FlI7NAjdTJBQEakDszIubiI vcytuQd3KNCV+F6qALPnt+0mPI4cgiRoPnhqCxsKe1viw75x/wPCCeiW4kubhdeh/P07 vIEQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p4si4229120ejn.726.2021.06.22.07.48.33; Tue, 22 Jun 2021 07:48:58 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231445AbhFVOtt (ORCPT + 99 others); Tue, 22 Jun 2021 10:49:49 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:56338 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230433AbhFVOtt (ORCPT ); Tue, 22 Jun 2021 10:49:49 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lvhgZ-0007Qr-5Q; Tue, 22 Jun 2021 14:47:31 +0000 From: Colin King To: Matti Vaittinen , Liam Girdwood , Mark Brown , linux-power@fi.rohmeurope.com Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] regulator: bd9576: Fix uninitializes variable may_have_irqs Date: Tue, 22 Jun 2021 15:47:30 +0100 Message-Id: <20210622144730.22821-1-colin.king@canonical.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King The boolean variable may_have_irqs is not ininitialized and is only being set to true in the case where chip is ROHM_CHIP_TYPE_BD9576. Fix this by ininitialized may_have_irqs to false. Addresses-Coverity: ("Uninitialized scalar variable") Fixes: e7bf1fa58c46 ("regulator: bd9576: Support error reporting") Signed-off-by: Colin Ian King --- drivers/regulator/bd9576-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/bd9576-regulator.c b/drivers/regulator/bd9576-regulator.c index 8b54d88827be..e16c3727db7a 100644 --- a/drivers/regulator/bd9576-regulator.c +++ b/drivers/regulator/bd9576-regulator.c @@ -897,7 +897,7 @@ static int bd957x_probe(struct platform_device *pdev) { int i; unsigned int num_reg_data; - bool vout_mode, ddr_sel, may_have_irqs; + bool vout_mode, ddr_sel, may_have_irqs = false; struct regmap *regmap; struct bd957x_data *ic_data; struct regulator_config config = { 0 }; -- 2.31.1