Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp881714ybc; Fri, 22 Nov 2019 14:53:58 -0800 (PST) X-Google-Smtp-Source: APXvYqy592HxcLsa5zFC4ydWtJJwcx/J8OnNTA/+Z/9NomekRGZSvDHb8/XL5uimtb/i/fBIDQ2d X-Received: by 2002:a17:906:53c7:: with SMTP id p7mr24709234ejo.88.1574463238740; Fri, 22 Nov 2019 14:53:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574463238; cv=none; d=google.com; s=arc-20160816; b=O+H/tTV6nTmbLkvzCPg+1UoIAOpjDl+Q7F0swNNvK6+Q8FZ3QnpZe1Msc4xIDavXE4 RkxJTaL3YMK9RanCFjozPmrTtq4TDyVuddyBL+iOMy+HISV4LPX85SPLZeCRgNunMsWI y3UEB7PhI7BqZhy2qjs6CF7VN0012cfn/tgruH9ebyRNLGmCULIJZrhCQiFGPO1/Vins DGP+kN0zwMeqaryhXizqqNBKi/xVVqaBPK60lP7ZpygfaRvaQ9FSrwSvPcwEEhDNXEmf +e7k3m7MXkhGN2Rsy2Q+hm6eU6ufgPjE7rqjw2/E+IUvmhYjaoF3Vna924jTW6tw26d6 fjYw== 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=Xro7M68OV++BkXvvcJ9UV32UWGT7VtUCYJbvBSGBBAM=; b=YeciXlLRWtsNo2hTL2c12Ec2ILytVgz14GCUU3yk9mD2qQZaC/37ZkTWDsogz2NlSn j8pQ9eREIFH/L3fUmf98dWtIuxN7LssLbNIXWUw8FwQHIPDgCQedS0Kd0PWrqU1WlrPL gHNUSXsGHysraXVveFFM9lOMdmjfG9ENL4HR4e5FFFDpAJEtkYDr94RJBYNauTwHAIjJ eXj7E8CDWow6X8FAJEL7tCmTs2NDkeFICjoumSIl486aKm8q7aJBufYDG/8uEoR7Kjxa qHOTrDrUOVJm8EwnUTslZQ9YTgUc/PoWkaq3jCqiaXu0nD50a+WL8vDFY7pb/ASJusP5 SiUw== 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 h1si5659435eds.434.2019.11.22.14.53.35; Fri, 22 Nov 2019 14:53:58 -0800 (PST) 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 S1726921AbfKVWwP (ORCPT + 99 others); Fri, 22 Nov 2019 17:52:15 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:43516 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726620AbfKVWwO (ORCPT ); Fri, 22 Nov 2019 17:52:14 -0500 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iYHmd-0007Lc-5R; Fri, 22 Nov 2019 22:52:11 +0000 From: Colin King To: Alessandro Zummo , Alexandre Belloni , Kevin Hilman , linux-rtc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] rtc: meson: remove redundant assignment to variable retries Date: Fri, 22 Nov 2019 22:52:10 +0000 Message-Id: <20191122225210.109172-1-colin.king@canonical.com> X-Mailer: git-send-email 2.24.0 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 retries is being initialized with a value that is never read and it is being updated later with a new value in a for-loop. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/rtc/rtc-meson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-meson.c b/drivers/rtc/rtc-meson.c index 9bd8478db34b..47ebcf834cc2 100644 --- a/drivers/rtc/rtc-meson.c +++ b/drivers/rtc/rtc-meson.c @@ -131,7 +131,7 @@ static u32 meson_rtc_get_data(struct meson_rtc *rtc) static int meson_rtc_get_bus(struct meson_rtc *rtc) { - int ret, retries = 3; + int ret, retries; u32 val; /* prepare bus for transfers, set all lines low */ -- 2.24.0