Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3161221ybi; Fri, 5 Jul 2019 02:58:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5XcG7kz9HeCYnQGLjlmTAsqcMh4QBAJHS1P+0uCWyTeG7WnXUuDh3pAZj0oy0D4rVA4eN X-Received: by 2002:a65:5687:: with SMTP id v7mr4447038pgs.263.1562320728849; Fri, 05 Jul 2019 02:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562320728; cv=none; d=google.com; s=arc-20160816; b=KU+uIZDwwL+deQQ2xeqkkydtJMi/uggCxdbZVRmPQbvNGR++Ndy1mSuUqNjBEPLNJj 4Uom44qVVvMVvboLBDD0/UO8cg/EcfYnYL010HrOst6thQTets1JSg9q34N8mptxCJzj olC/AJOUz7vB5GtNZB6f24KfKNoxyqkxMMSr8dSdzMMDuwLz1N2t8R5yaFd7rQGvrIYZ y4Zsl9eN7gnz/p4RwTWiaYxrSWX0oqeT6Ga6egtPbu9rKt9FyooGfwnKs4jD0VmrRIJl K1hDUDRueA9J65lfq8iMvRq0x0HHbvThXPvBFFfKvGSudMkVV566Ck4f73+Z9aXPZ9JH siuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Z7679b5ScrcStwieQ1JVsUUbX6hdlAQOiDN6feZeE+0=; b=nV80fNpNttNGDzODJlTROLkKcBsKGYiaUzRVX3bMyn0BISpVFRLsXWkFtodzlwLDhR PqAuqtmXgaSai6u7reQzdibL5hXSIapClKibU/4W5eORid/afNxPB6kleIOWEct8yrk1 6L1LCwKLk1dLH4CTkPw/4RdmEy/CEH5ty4sHpbqnKf1jh2n0oziahj0Tg80beYwJNzgI Jp6McesXdHXgpPTtMwu7eS+BPLPGodYruMnmfLGp5hwPS+7thkZ/qRZre0NBiyezstiE cRrA0usFOaT+xCZF+e9GGDZ8bNYixu8MgV2CKdWzY0UMGMwZxmsyhJW9jVYCxfDEIT8H RXgw== 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 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o11si7772077plk.47.2019.07.05.02.58.34; Fri, 05 Jul 2019 02:58:48 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727599AbfGEJgP (ORCPT + 99 others); Fri, 5 Jul 2019 05:36:15 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:39389 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727092AbfGEJgP (ORCPT ); Fri, 5 Jul 2019 05:36:15 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1hjKdY-0002E1-F9; Fri, 05 Jul 2019 09:36:12 +0000 From: Colin King To: =?UTF-8?q?Pali=20Roh=C3=A1r?= , Sebastian Reichel , linux-pm@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] power: supply: isp1704: remove redundant assignment to variable ret Date: Fri, 5 Jul 2019 10:36:12 +0100 Message-Id: <20190705093612.21925-1-colin.king@canonical.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King The variable ret is being assigned with a value that is never read and it is being updated later with a new value. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/power/supply/isp1704_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/isp1704_charger.c b/drivers/power/supply/isp1704_charger.c index b48cb7aba97b..4812ac1ff2df 100644 --- a/drivers/power/supply/isp1704_charger.c +++ b/drivers/power/supply/isp1704_charger.c @@ -342,7 +342,7 @@ static inline int isp1704_test_ulpi(struct isp1704_charger *isp) int vendor; int product; int i; - int ret = -ENODEV; + int ret; /* Test ULPI interface */ ret = isp1704_write(isp, ULPI_SCRATCH, 0xaa); -- 2.20.1