Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4015157imw; Mon, 18 Jul 2022 20:02:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vGQUS2vPLm7TDhM5OtaQbSkBTLU3Bl/S/KvgfRE9hx+9rJOO/atrJtGxYgxaVkFNBAdp1e X-Received: by 2002:a05:6871:8a:b0:10b:ad08:894e with SMTP id u10-20020a056871008a00b0010bad08894emr17494418oaa.10.1658199770769; Mon, 18 Jul 2022 20:02:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658199770; cv=none; d=google.com; s=arc-20160816; b=Y6EXWUmXQc7Lv2nD8k1x4ySRtd+/MQqBJhJYAR3HvU7TbbZup5rRdhQZxT18lOs74v J9p/fyC7sykAmxkKbrTIwDoQ32YNgPtchmeBnt9F5gkxvRMOb5wzD+xsxMcDwrwJpev8 zle2Gaq1dRmjXvcuViqpiw7Pyz8+b3IlaNZYU2rweeuR9mXdkwCb/vWlMT42ru4j4pdM nPkE94Y+ZUpyjKsB/Bd0QUjAAZDay7dOGc2UdykobSRdsz5aeLP2SIUfxh5hY/FKGyvn 3LaQSYKDivoAVn+PAHu0WSeJo5zoCPXwHBthssbgtVOJCvZyPJTvbUhYTHlZX+i3y4Tx gasQ== 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:dkim-signature; bh=1KL4MutqoRxmcuscCUXm8t63mCy8nNQ4Lfka4AKoNx0=; b=DqNtAyf08twVbSHOQYb/ZK5ia/QvTc+aOZBsQomCMVsJUIoh9PGxrCuczoQGJldsXq JuSYQpvfbkxDf9rB1ldug8yIgjO0aDFUh2FcaWE4RHeUik8qflXykHTrV3ZkhvzYVWdI D6WAgKW8QkeJJXb+DU72XTt1GsnRNp72JleLtSzksbpV+0oefSaAdNEl7d71Pyy1uY28 GkheIEoiR7fJ2zhsaP51cdbxl0xt3pFq4KbOgdoYo3Fag08XCH/0RQtrb775gAgxitBX R/4C2rmWFplcHz2yMC/Dob9uPVPjpuZ+Keu3hnly8IMLh1oxS/T/EdJdRA3pi+f9qCQ5 +qqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hG70k8sB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cz20-20020a056870649400b000fb079ca427si11090242oab.228.2022.07.18.20.02.36; Mon, 18 Jul 2022 20:02:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hG70k8sB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236813AbiGSC1y (ORCPT + 99 others); Mon, 18 Jul 2022 22:27:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231645AbiGSC1x (ORCPT ); Mon, 18 Jul 2022 22:27:53 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 212533AE74 for ; Mon, 18 Jul 2022 19:27:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658197671; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=1KL4MutqoRxmcuscCUXm8t63mCy8nNQ4Lfka4AKoNx0=; b=hG70k8sBr2RPUq9AQNzTz5JhB6ISFMPcV6p5dqLUGieqwG2+BHRQTGQujrvtoR2youbxgD U7D05hiJ13bPuTElP2Q1UhUyirkLnVrkjBxyP/7DBmM1l1R8JijI3YqFv7zloBycwP1EBb 8Rmhnvi098q/IjVh+OUYvnALlRUzu5s= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-612-ZMnvrwSENcusL6pIuAgz3Q-1; Mon, 18 Jul 2022 22:27:50 -0400 X-MC-Unique: ZMnvrwSENcusL6pIuAgz3Q-1 Received: by mail-qt1-f200.google.com with SMTP id c22-20020ac81116000000b0031d25923ea8so9465533qtj.17 for ; Mon, 18 Jul 2022 19:27:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1KL4MutqoRxmcuscCUXm8t63mCy8nNQ4Lfka4AKoNx0=; b=5UYUKnqrnVvcCRjcCW0Wx0cLvNK+jaD1oe+7dw1yJUm+6NAAsHnTe6p+8OZ2OX5eIJ u2aD51+O+WgVNDI+ikuNBTnbNavto/W01C5Tr7P12Tz6NEfNPhKsrDVeh1fkJiq+uNkB FmaOtgwnqB8RirRWpy8mPCHnEGOooAYWjNOejR5HzyIwWtgcFN78bbLgL37ssRQJgPsh Ft1mTOd5dZuPbz9on7r+iMtj//d3icD/l8hqtSbXFSEqz77X67dmcNkEP50l7lbH0dUt sXnd/q+cPyC7isa9Z5MNoizTgE0CiH1wqRhXJzQCfCCk97ShiK/AawTeDws8D4EoMipm xO6A== X-Gm-Message-State: AJIora+E7pA8E22UdMxqIY+vkRcR4d1edliWsY8FOT9Ixhs1Lp8FK8xZ a50LZ9GPezXDlcUWYASJfl8ZrQhjmq37W7DJ7MRJOOc93LUEJFSXoBv1tz1YFbOtmTrERbLpFWq M4niw7ulbnjwOBfNacPEUlPnE X-Received: by 2002:a05:620a:1709:b0:6b5:ea99:472 with SMTP id az9-20020a05620a170900b006b5ea990472mr5057299qkb.486.1658197670161; Mon, 18 Jul 2022 19:27:50 -0700 (PDT) X-Received: by 2002:a05:620a:1709:b0:6b5:ea99:472 with SMTP id az9-20020a05620a170900b006b5ea990472mr5057291qkb.486.1658197669972; Mon, 18 Jul 2022 19:27:49 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id g14-20020a05620a40ce00b006af3bc9c6bbsm14304615qko.52.2022.07.18.19.27.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jul 2022 19:27:49 -0700 (PDT) From: Tom Rix To: linus.walleij@linaro.org, sre@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH] power: supply: ab8500: remove unused static local variable Date: Mon, 18 Jul 2022 22:27:43 -0400 Message-Id: <20220719022743.305189-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org cpp_check reports [drivers/power/supply/ab8500_chargalg.c:493]: (style) Variable 'ab8500_chargalg_ex_ac_enable_toggle' is assigned a value that is never used. From inspection, this variable is never used. So remove it. Fixes: 6c50a08d9dd3 ("power: supply: ab8500: Drop external charger leftovers") Signed-off-by: Tom Rix --- drivers/power/supply/ab8500_chargalg.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/power/supply/ab8500_chargalg.c b/drivers/power/supply/ab8500_chargalg.c index ae4be553f424..05146d436a6a 100644 --- a/drivers/power/supply/ab8500_chargalg.c +++ b/drivers/power/supply/ab8500_chargalg.c @@ -490,8 +490,6 @@ static int ab8500_chargalg_kick_watchdog(struct ab8500_chargalg *di) static int ab8500_chargalg_ac_en(struct ab8500_chargalg *di, int enable, int vset_uv, int iset_ua) { - static int ab8500_chargalg_ex_ac_enable_toggle; - if (!di->ac_chg || !di->ac_chg->ops.enable) return -ENXIO; -- 2.27.0