From patchwork Fri Nov 16 11:01:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "(Exiting) Baolin Wang" X-Patchwork-Id: 10685903 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A0E08109C for ; Fri, 16 Nov 2018 11:01:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8EEC72C119 for ; Fri, 16 Nov 2018 11:01:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82BE02D110; Fri, 16 Nov 2018 11:01:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28C952C119 for ; Fri, 16 Nov 2018 11:01:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727630AbeKPVNp (ORCPT ); Fri, 16 Nov 2018 16:13:45 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:44313 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727615AbeKPVNp (ORCPT ); Fri, 16 Nov 2018 16:13:45 -0500 Received: by mail-pf1-f196.google.com with SMTP id b81-v6so10755412pfe.11 for ; Fri, 16 Nov 2018 03:01:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=6LJBTmjPNOjTTUrUiu6Uu+XwWfVjQEp0CGIbptL2pHE=; b=fapVZTL3wXtnQ6qrqRRDkPW6zHsdgy5Hy97ifAbfHXRkAIiBxsmM0Sy8undREmQltZ aWIExxCEv7GERjq3U5gIThtpDaIv68DyzvWZg+mMtu8D+GCLNz8sKR2/r5/GBsn5M8YL Qv4l4dWy/0EKyK5VjrApfY2CXYwApuZdj6eHw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6LJBTmjPNOjTTUrUiu6Uu+XwWfVjQEp0CGIbptL2pHE=; b=Cy810TpRaVgveAehPqA1iEJzMmilzoMROGp4ET2AL5lMwls7lJirutfQUJcfuEA1Kk jaWkpIZNhKGgO6nRGnYkhxWG8e+wKq2eIO9S5xW6EktRs/deHMPHSmpVJbbQ4BdlYStw F0DmGvfiQiFUZjCLHGfnNsmjT8idDROYW8++aMkua9iFxP4FCtbPtNZNInjfpgR9QGA1 nEg59kgwgyrYG7sCvEkJ641f1/819QGK0DQosWLi+9EYayCK614FpYA35uSNLc/Tznqe X+YVGsEeXManFv69RZwdw7ovwApcMjS6TBNMOkjS9mT0RC+TK5HSQnFGOCgOL2W9QtFT sZxA== X-Gm-Message-State: AGRZ1gIuJ8iYX/CX9mPZYtICrIXUVeZrryQdEMROpktGGhkN65OnG8ix qRhep0vV1t+byZDhrA3Y2a2pSw== X-Google-Smtp-Source: AJdET5dfi9j3r0ERwcuY1UtDOiaDjOZsh3x1EIH3bhnmuLfEZxizntcPaiO9nukcVW1tJo8voLzH+w== X-Received: by 2002:a63:dc0c:: with SMTP id s12mr9577968pgg.398.1542366114488; Fri, 16 Nov 2018 03:01:54 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id 202sm21268106pfy.87.2018.11.16.03.01.50 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Nov 2018 03:01:53 -0800 (PST) From: Baolin Wang To: sre@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, yuanjiang.yu@unisoc.com, baolin.wang@linaro.org, broonie@kernel.org, linus.walleij@linaro.org Subject: [PATCH 1/6] power: supply: charger-manager: Remove unused index counting Date: Fri, 16 Nov 2018 19:01:08 +0800 Message-Id: <4ea9eaf85d780afb190cb45da2df8ff5fd86d449.1542362262.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove unused index counting. Signed-off-by: Baolin Wang --- drivers/power/supply/charger-manager.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/power/supply/charger-manager.c b/drivers/power/supply/charger-manager.c index faa1a67..a1b420a 100644 --- a/drivers/power/supply/charger-manager.c +++ b/drivers/power/supply/charger-manager.c @@ -1687,10 +1687,6 @@ static int charger_manager_probe(struct platform_device *pdev) return -EINVAL; } - /* Counting index only */ - while (desc->psy_charger_stat[i]) - i++; - /* Check if charger's supplies are present at probe */ for (i = 0; desc->psy_charger_stat[i]; i++) { struct power_supply *psy;