From patchwork Fri Mar 5 10:01:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 393482 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp284391jai; Fri, 5 Mar 2021 02:01:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJx41RtiAmNwcNpjz+Y2DoUIj4DdG+huH76arntIrvOql7LrJj0+ucQMoz8EfPkp5LqkZK3S X-Received: by 2002:aa7:c345:: with SMTP id j5mr8196582edr.338.1614938506801; Fri, 05 Mar 2021 02:01:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614938506; cv=none; d=google.com; s=arc-20160816; b=EwQMQcjhkKqfEPswNj0YAyWUUUB5E4Vbpv6N885zROIvuomwnYJagmdrD4ssq7aU3/ uiFtinD+B8dJPVDgjGYnR851HGjdFfUgKnk6NZVHgLgZNzQnBfK/92iJ/VnBd8T+L7hR HIEg7NQbussWpOVsWNx2Z2ue4BKgZeU4VAWYBfTXYFGIyU7ImMEmgXL32F7gprfHF0Vd ZZYyJCcWUyNosq+2RdNw4FAZuuyQXlkClpdLYGdqVfI6eDsixC7FjpP04eKnLJ7D+0kl 39N6B6FM/F8rOZRG0mx0F64dpYd6nmmnKK/U6SN7vNbb6Z1NgwhOAHlnromwsIUf4EP4 5jQQ== 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=kBTu7vmXsav5wd+6KRVkYdgBe5MwHbNbHuTYnq2On9k=; b=y5ZPN53iI3gzDvwBaZ6JGqstSevOxm/b5IXy+b0G+26TnxcOESN9i2Y/qIclH3Jawu e2f6bRTIAGAITMGgDaB24WJLeq3bpLJdUaCmGjrnppIAnyUQbUYPcYK7YV9qPDJ44jVO Wp3pY4B9UmObjXmk4Us7PRVjkIhs+CvJLoloqD2H3ggXrhKtvrApy/DAlE7fT5cX4xAP QDoxozyb3J8i1B/GZySrhNEFNrQlMk9armm6yUMJ56NcM+AKMaImwhQcAw1laLy+4YyU StJuEoFBLD4RRN1dYM98lFEQcA4/tYfOKQPUX4rZomlvfK44iiqJ96+qfcauTQazZtZj imRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QUcHgL2s; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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. [23.128.96.18]) by mx.google.com with ESMTP id i20si1277554edq.582.2021.03.05.02.01.46; Fri, 05 Mar 2021 02:01:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QUcHgL2s; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 S229611AbhCEKBP (ORCPT + 7 others); Fri, 5 Mar 2021 05:01:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229608AbhCEKBO (ORCPT ); Fri, 5 Mar 2021 05:01:14 -0500 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E15B2C061574 for ; Fri, 5 Mar 2021 02:01:13 -0800 (PST) Received: by mail-lf1-x130.google.com with SMTP id v5so2561949lft.13 for ; Fri, 05 Mar 2021 02:01:13 -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:mime-version :content-transfer-encoding; bh=kBTu7vmXsav5wd+6KRVkYdgBe5MwHbNbHuTYnq2On9k=; b=QUcHgL2sprTHVHUULWMBA0DY+ndZxZXsRl/oILgkXahRJt60L4jhvSDDGJqUxEa/yV 2v94/eLpB+qmybeIc6eEzjsENv68lB+PTCfEohlgRtqHlaJ61/OUnYfhqAiSackNHjD9 IZkG3wF8OV2Nat1pxVelL+BBzrsmUUenm2T6QLHuVkZ9x2h/ezQnfrC7dIKIsayN+aPv Mr6oY/7CE+61RwFcdtII6Od+pupQyNhGSrxwgR9prCtsYpShJo27ophOo565ZGsVyZ/o UO3hUqRICuK6GK8ACGF+nnXjabwvbwSdzD8Y9DF2miX+C5+KwGP9Kv+U7sVLuFwlzKNZ xsZQ== 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:mime-version :content-transfer-encoding; bh=kBTu7vmXsav5wd+6KRVkYdgBe5MwHbNbHuTYnq2On9k=; b=QHIBBEHjU96azLln2lvSgrYcNm1cB2yxFQmEhRuvAeZlnvJaGsIQbUr9s9wPmw7qGy 50Gk+RFkLC16kqkn3OaQVix7OpsmRzsLILTAmKRvgBg4ywpZZmVvLFm2NDs3gkT7g7R4 idARF8nslK9HgZ7f4KNFidKta+hIUkRfwAe3J/w/RrsrwEyNOmnCmo7ZAqBaejVeejJ/ GOXl6AinpnoUZYYDZpZjCGy50GqzEh2xMzlOdA4sRRDC977+gAGS6ChwSrkmPj1fM6AH U9T62Im39QowSH48E1nLPozHjqegdlva+z+g5VrsDqV92GRVTZm7fVSm3iY/9p+ERYCX Ni8g== X-Gm-Message-State: AOAM530zqdLPGNGFQLqq23vozTMtluXM64gXQSa9rMw+3aF6a3k9Kh1m ZHssgnur2Mh1Xdc3QUIsg9mxuNvB5MTvfQJN X-Received: by 2002:a19:7413:: with SMTP id v19mr5102239lfe.228.1614938472409; Fri, 05 Mar 2021 02:01:12 -0800 (PST) Received: from localhost.localdomain (c-d7cb225c.014-348-6c756e10.bbcust.telenor.se. [92.34.203.215]) by smtp.gmail.com with ESMTPSA id q17sm242432lfu.108.2021.03.05.02.01.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Mar 2021 02:01:12 -0800 (PST) From: Linus Walleij To: Sebastian Reichel Cc: linux-pm@vger.kernel.org, Linus Walleij , kernel test robot Subject: [PATCH] power: supply: z2_battery: Drop unused variable Date: Fri, 5 Mar 2021 11:01:08 +0100 Message-Id: <20210305100108.2036203-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The kernel test robot reports an unused variable in the Z2 battery code caused by a recent commit. Fixes: a3b4388ea19b ("power: supply: z2_battery: Convert to GPIO descriptors") Reported-by: kernel test robot Signed-off-by: Linus Walleij --- drivers/power/supply/z2_battery.c | 3 --- 1 file changed, 3 deletions(-) -- 2.29.2 diff --git a/drivers/power/supply/z2_battery.c b/drivers/power/supply/z2_battery.c index b1508fe70e5e..7ed4e4bb26ec 100644 --- a/drivers/power/supply/z2_battery.c +++ b/drivers/power/supply/z2_battery.c @@ -90,9 +90,6 @@ static void z2_batt_ext_power_changed(struct power_supply *batt_ps) static void z2_batt_update(struct z2_charger *charger) { int old_status = charger->bat_status; - struct z2_battery_info *info; - - info = charger->info; mutex_lock(&charger->work_lock);