Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp27895ybb; Tue, 14 Apr 2020 18:08:14 -0700 (PDT) X-Google-Smtp-Source: APiQypIeDa83Ug1XU2JOJnsffigf8V3ixptmp01Bb0lafozN/ejjBFxBmo7+qZ/on9xMaH6tz2/I X-Received: by 2002:a17:906:6c93:: with SMTP id s19mr2645664ejr.135.1586912894368; Tue, 14 Apr 2020 18:08:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586912894; cv=none; d=google.com; s=arc-20160816; b=bhPN73lyI7WwJjNJD9GmEEjDh9GSVLqD8Hm6GAhCLs6tVW0J6m3Gvf0NF0EaR3lFH6 ktxSbW2T23hrTMakbGBGRps4es8aHutsvdlSjkvzkcYRUo4EZzSdDaH8ibDoHsdyefa9 oo1xeq4I9N8gywboEI5AfTKtEbWG+cN9Gb2nPVaVpUR/c8Pjg2xtoxSkplU9jWgWhXw1 lOVjReJp0XDZ1swT4js4BkChRmrs2ljRmCx9V0ogZhHiNweP7brzvVG2LwovB1+Txv+H U3C3FMysnRzDSg33QKwD+Wj4MLcZdgqjJcWzdWSpEBp/Z/LuVIve4PiaFVByV5nmSnqU bJNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=4LTTZu6V+dzu5dMowWvG/G4aD/QldRiI5N2jOHARTfc=; b=t1pcNuyxVf3k70KkPs+oSBBMMwYqM0iI5Li0PIvo6LYY21xvRoDscTy2RzcSUHFlay gD5mpZm8B+PoP0+V0A+Pr4LrryFADjGXRTtGiAMBefA7IFtHD+ilsHaiKkzpfyzqUq+r f5BPOirdbDbXHL3d/KOm1KogHs5ba4+ghB//ZMeheym22j7TmeoPaj47YZs9nbH4PovV zl0OkiAYKqGXEoZYXf423vniOLtK9A4TVmSu3aZNEgT+ydAsU/F36xiSIwvF5f4yykte 6Zcm8cVvFohW6VAxZuwdbkat9f+33VG6YQB0sj8tEH4ttPCtuI6wNxBJ3/DhBYVXWDIn j5cQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for 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=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o6si8724799ejb.97.2020.04.14.18.07.49; Tue, 14 Apr 2020 18:08:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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: best guess record for 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388728AbgDMVFS (ORCPT + 99 others); Mon, 13 Apr 2020 17:05:18 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:34262 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388723AbgDMVFQ (ORCPT ); Mon, 13 Apr 2020 17:05:16 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id D5CAB2A1205 Received: by earth.universe (Postfix, from userid 1000) id B9B673C08C7; Mon, 13 Apr 2020 23:05:12 +0200 (CEST) Date: Mon, 13 Apr 2020 23:05:12 +0200 From: Sebastian Reichel To: Jason Yan Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] power: supply: max14656: remove set but not used 'ret' Message-ID: <20200413210512.mljqzlgu46hzn3hu@earth.universe> References: <20200409085401.47516-1-yanaijie@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ul3uf7dcirbx5qse" Content-Disposition: inline In-Reply-To: <20200409085401.47516-1-yanaijie@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ul3uf7dcirbx5qse Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Thu, Apr 09, 2020 at 04:54:01PM +0800, Jason Yan wrote: > Fix the following gcc warning: >=20 > drivers/power/supply/max14656_charger_detector.c:142:6: warning: > variable =E2=80=98ret=E2=80=99 set but not used [-Wunused-but-set-variabl= e] > int ret =3D 0; > ^~~ >=20 > Reported-by: Hulk Robot > Signed-off-by: Jason Yan > --- Thanks, queued. -- Sebastian > drivers/power/supply/max14656_charger_detector.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) >=20 > diff --git a/drivers/power/supply/max14656_charger_detector.c b/drivers/p= ower/supply/max14656_charger_detector.c > index 3bbb8b4c8ae7..137f9fafce8c 100644 > --- a/drivers/power/supply/max14656_charger_detector.c > +++ b/drivers/power/supply/max14656_charger_detector.c > @@ -139,10 +139,9 @@ static void max14656_irq_worker(struct work_struct *= work) > =20 > u8 buf[REG_TOTAL_NUM]; > u8 chg_type; > - int ret =3D 0; > =20 > - ret =3D max14656_read_block_reg(chip->client, MAX14656_DEVICE_ID, > - REG_TOTAL_NUM, buf); > + max14656_read_block_reg(chip->client, MAX14656_DEVICE_ID, > + REG_TOTAL_NUM, buf); > =20 > if ((buf[MAX14656_STATUS_1] & STATUS1_VB_VALID_MASK) && > (buf[MAX14656_STATUS_1] & STATUS1_CHG_TYPE_MASK)) { > --=20 > 2.17.2 >=20 --ul3uf7dcirbx5qse Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAl6U1AIACgkQ2O7X88g7 +pqpgw//Y+UzgZPhDZpKZko7ATusRTbvh7P59AmNkfarrIHMYH2Ygi/txHlnkyN9 ChuByntYsQvL2D7PMAFCw7MZBcYz+nToUQcrWRqLUN0YMeZpfgWVQO/nkw7B3AU1 QN2QXxI9exfko7USJPv6lt24aFv0AeZaOR3XN47MvQP2EYcqmBYZSCa2Dcv3ntM8 XrCAfhmnOrC0cXzp2TEwQXN5Z5QMPgFr9mg4a7EQ9KFSynNArHck1lgtR73w6zRo uyES0kB+eNlzu19xFocKv1LCILChIjIJ1Y/EA05ZaYiSimkTO2ZKRrKJFDswqgDR NEHW80ZooM08Hjm+vr9dFI9qF0p7D2OVghP2iQcsg0dQ//kFrOFSgjPfYBphWqcn tSE/5tqXpo+4FgwcqWSW21pdWBm4JwhXL3emOldLJy7tLcGdyStQKW2B45yVcVJh t5PEeAW9ngxyjsvpe2rgVDyTNesgSSGDpkVC06VMg40ndi0WA0BPZb+WfbwtNU28 Yod1Sa7Wuay6Aa7iUGcpTQGnv+f20zIsw/y0tM8Edjqm6S30LDfvkiGK7opCMRZR sUuYY6AmgIphpbSfCyKPMAPKKoAxgUoxoCNzv22JadzGpVQEB4kyvR+Nde1EY6kI mL4hUIPIGMzkNmToY2yjOJlI+Z6UmNXjR9rY14Egu4XjiUg/yjg= =AFfq -----END PGP SIGNATURE----- --ul3uf7dcirbx5qse--