Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1185823ybh; Sat, 3 Aug 2019 20:04:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTRUXaGuX8BboVjRZWRyT0B7w36GvXkXrkjgpECCLHvCNDr8UvqcQeUPtywyffHGeGIsot X-Received: by 2002:a63:3009:: with SMTP id w9mr58128063pgw.260.1564887887276; Sat, 03 Aug 2019 20:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564887887; cv=none; d=google.com; s=arc-20160816; b=UbNV5fbREnDeW/INWdP6gPppjLW+pfJwwLjfR4IqPW4zpJejur1NnmvABku4CuUMsu +2u/Xhekf05Lvv+yKgcVhTnfif0WmobEcv9QPFBx+QQLBiwPDr3KTAD2An4dd7ZRKsyy Rrg0Up1LHcgj/HCtqa1aV5XaBkABqDl4duDPaM7NSjs8HMGjoQVrWaNAUtCh2xTnJN3P TDq6UW5fz9TDYhKSjwe9YQidCtmuICAtbxjDJLsej68hGdXhTMqOLjG7l2Bpgknxv1wm Tgv36BbyPged/UaWw6zcTxXfmINMKTDZZLkt7UrCgWwAzCEoMa1BaHJ1OkR3mMljQSZX ZqXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/+6NeIcL7nIjmDGVLWabC3vXM+Jl0SVqaRvJgDEpCqw=; b=MuDDu5d4zgSp5qwLlZVzacHcxY+Tj4jxlY4oDS1DY+j/2GgydIPDElXjtmmZN+ojo9 YCicGrbfSgDmaYuF9vjNWuuxD2LNbrMu7gdKuKQ6is+gIiF9GjNHAvs1sdQoscvEKgGy rmsJRWarCe8MPJkl8DsKk2gMQ6dOPZwxneDLk3UxlyD7w5s4kl/udE1QFG4HDPKmSsws oCElaqY1ND8r3Ob5tUDvbcQjQcTybS6yrrH8RL1PbR4deN3VQVsLQRtAJwuwdHDluCV1 qQYl3HpL25k1a32WdZLQB+mzVSRbBLmBa7ijONMdDlaD+LNKgXu06isN2IkPY1uAwt+i kMtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="zW3PTB/W"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5si36666559plh.137.2019.08.03.20.04.32; Sat, 03 Aug 2019 20:04:47 -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; dkim=pass header.i=@linaro.org header.s=google header.b="zW3PTB/W"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2395186AbfHBVuq (ORCPT + 99 others); Fri, 2 Aug 2019 17:50:46 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:46913 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2395179AbfHBVup (ORCPT ); Fri, 2 Aug 2019 17:50:45 -0400 Received: by mail-lj1-f194.google.com with SMTP id v24so74308230ljg.13 for ; Fri, 02 Aug 2019 14:50:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/+6NeIcL7nIjmDGVLWabC3vXM+Jl0SVqaRvJgDEpCqw=; b=zW3PTB/WFvF+k/aMp2lt6zvwPsJOXSOWNvK4f2fEkcHmPImTWcM4t8CfbJgvDztVZ/ Q+X25hSkndasM80otX/J5yTNL1FNvqXYEEENQp55f7PNUAmfF/Qla14xP/qKRF4Qx+D/ iueJUlhJ3B7BrHzJ5hRmFEKtPiZg15ap+2+26eJNzIXV2BBDtR0xeosrH8TRq4UJM69t zanGCNJ+48SzWEfcaDnw+Cjsyspsuy2lF1QzxAuEiJT7JbsnmH3KhH5U71qNyJfVPJGG 15m+snrj+nLwv+GjsSqpSaOpRl2y0XxF9Q3ceTMk10LLo6Mtb2+D8gruB8NTkqL+xrHF yVhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/+6NeIcL7nIjmDGVLWabC3vXM+Jl0SVqaRvJgDEpCqw=; b=kG/zqhbBzdVZLeycFcRDe2azEyANfUMWSqcdB2OorH9FLDIYGgmvzLfaeWFM5Addav 08dOBh3BNETtSgpHIWj3WnX9ymv987JlvMlZfaFV7KE+g3qFBjv8THmEr12+2m+vXgfF iK8ZJrXaHEnWRRE2UhWJqm3LugbgJFcg8iFg6R6Db2amJhStKE9CIocfvE5V5VNOZQff JFdjjlzH4Za1/cPV4pDZvpb1g+PySnwav+kJl+CrtcpfWUtRrXvxEmAC+HCp63wvaDJ+ frOkOQft9CHSIXY3bwJiqozAq2aJdKgd8XV8AYubv4luca4YUj+0bFANnb/yrn8HALfl mOhQ== X-Gm-Message-State: APjAAAXiN4FgzNWTexaZgbnFU+AccAyN9SoRPjyF/cIm6cdTU+/Z3b7W ZSy/Phi7pRHJ8xdo4BZaMrcglAhEj9vUmmMRK0npAA== X-Received: by 2002:a05:651c:28c:: with SMTP id b12mr7977275ljo.69.1564782643699; Fri, 02 Aug 2019 14:50:43 -0700 (PDT) MIME-Version: 1.0 References: <20190717141848.31116-1-yuehaibing@huawei.com> In-Reply-To: <20190717141848.31116-1-yuehaibing@huawei.com> From: Linus Walleij Date: Fri, 2 Aug 2019 23:50:32 +0200 Message-ID: Subject: Re: [PATCH v2] power: supply: ab8500: remove set but not used variables 'vbup33_vrtcn' and 'bup_vch_range' To: YueHaibing Cc: Sebastian Reichel , Lee Jones , Loic PALLARDY , "linux-kernel@vger.kernel.org" , Linux PM list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 17, 2019 at 4:19 PM YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warnings: > > drivers/power/supply/ab8500_charger.c: > In function ab8500_charger_init_hw_registers: > drivers/power/supply/ab8500_charger.c:3013:24: warning: > variable vbup33_vrtcn set but not used [-Wunused-but-set-variable] > drivers/power/supply/ab8500_charger.c:3013:5: warning: > variable bup_vch_range set but not used [-Wunused-but-set-variable] > > They are not used since commit 4c4268dc97c4 ("power: > supply: ab8500: Drop AB8540/9540 support") > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing Thanks for fixing my forgotten codepaths! Reviewed-by: Linus Walleij Yours, Linus Walleij