Received: by 10.223.164.202 with SMTP id h10csp645271wrb; Thu, 9 Nov 2017 00:45:52 -0800 (PST) X-Google-Smtp-Source: ABhQp+RmkBsVRErIszW1ome7+Te3LKcB7mhOTtpXDcc26uoCEwbn85FplaYTtVZYcQL3hzsEXVgC X-Received: by 10.99.38.129 with SMTP id m123mr3140801pgm.53.1510217152135; Thu, 09 Nov 2017 00:45:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510217152; cv=none; d=google.com; s=arc-20160816; b=b+OCi1BmAQREo7mHK5dk00GOlcr6sYqGJs7bQy644d8e7cocpuw2VVQDe+278LNbIc sDQ/XxtWjen0K+9yfxR17qPvfUuV7WjEx9sMIJ1WqGq2pfrJ9HTL9sbzrmxLWImbhCJF ZeUoBhAY2SfsypONP3NqFie8HuELks5bAL9bw1WVfBVJNBmqZkiofcgAk1dp7hU4gbGk vl4uKWIrZoRBlU+7LdqxqiXJ1KpzCA+MwQZum638Pd6euGgx6NSAWJwHrNgAZ9Mx6qkf P57i9yK4O7Fpdl4OmVxAjG1ZdZaWoHT40oJxhj+7phhh6jn7LWGhLsIJIoGUAkmSa0yE 50nw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=Gsebmx7bYRzAqU5Kodh2g2bdQMcXqVnKp2ZT8BIMQ8s=; b=TJ1TNsZkqgoTOPlxMb6+Cpjr3DP55QqPF+zmROxZGcup+vGRsIDAKgoyTpS41lmRsD wiY6Adr60+vGyFITSEpjRvkHj/h9Oefn19aopHFhgEW53gXeb4fYoWxn8P3jc0RQpG0+ 8S3TWymqoz+fJlpEMR3CRrp9ZypDivcK433fMl08KX64zW6IekpR47ZXvUnQuFZo6qmK OtB0XtuY8Pt4MfVMP7Bj47euu7hXpX5bvs4aLfcStoBBv9/C9gHo4EJcVoUvukVGkgtT Z50inAG8/sXMZgDH5gZCaHhJLvkJ3ArqdQYtFhprOrVZylyJ7hPq2IXmV21dzMLtMh0K 0s8w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q3si5671436pgr.667.2017.11.09.00.45.40; Thu, 09 Nov 2017 00:45:52 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753552AbdKIIox (ORCPT + 82 others); Thu, 9 Nov 2017 03:44:53 -0500 Received: from dispatch1-us1.ppe-hosted.com ([148.163.129.52]:48884 "EHLO dispatch1-us1.ppe-hosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753360AbdKIIov (ORCPT ); Thu, 9 Nov 2017 03:44:51 -0500 X-Greylist: delayed 304 seconds by postgrey-1.27 at vger.kernel.org; Thu, 09 Nov 2017 03:44:51 EST Received: from dispatch1-us1.ppe-hosted.com (localhost.localdomain [127.0.0.1]) by dispatch1-us1.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTP id D51912E68AA; Thu, 9 Nov 2017 08:39:47 +0000 (UTC) Received: from pure.maildistiller.com (dispatch1.mdlocal [10.7.20.164]) by dispatch1-us1.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTP id 1FA9D60060; Thu, 9 Nov 2017 08:39:47 +0000 (UTC) X-Virus-Scanned: Proofpoint Essentials engine Received: from mx1-us1.ppe-hosted.com (us4-filterqueue.mdlocal [10.7.20.246]) by pure.maildistiller.com (Proofpoint Essentials ESMTP Server) with ESMTPS id 9F8D022004D; Thu, 9 Nov 2017 08:39:46 +0000 (UTC) Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1-us1.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id 06127100059; Thu, 9 Nov 2017 08:39:45 +0000 (UTC) Received: from hgk-desktop.uk.solarflarecom.com (10.17.20.82) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Thu, 9 Nov 2017 08:39:39 +0000 Subject: Re: [PATCH] net: sfc: remove redundant variable start To: Colin King , Solarflare linux maintainers , Edward Cree , CC: , References: <20171109080122.3254-1-colin.king@canonical.com> From: Bert Kenward Message-ID: <7992c6f6-f847-95b5-b16f-cbecdb05d439@solarflare.com> Date: Thu, 9 Nov 2017 08:39:36 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171109080122.3254-1-colin.king@canonical.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.17.20.82] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-11.0.0.1191-8.100.1062-23448.003 X-TM-AS-Result: No--8.967300-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-MDID: 1510216787-fnxU6A0o0vBt Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/11/17 08:01, Colin King wrote: > From: Colin Ian King > > Variable start is assigned but never read hence it is redundant > and can be removed. Cleans up clang warning: > > drivers/net/ethernet/sfc/ptp.c:655:2: warning: Value stored to 'start' > is never read > > Signed-off-by: Colin Ian King Acked-by: Bert Kenward Thanks Colin. > --- > drivers/net/ethernet/sfc/ptp.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/net/ethernet/sfc/ptp.c b/drivers/net/ethernet/sfc/ptp.c > index 56c2db398def..caa89bf7603e 100644 > --- a/drivers/net/ethernet/sfc/ptp.c > +++ b/drivers/net/ethernet/sfc/ptp.c > @@ -648,11 +648,9 @@ static void efx_ptp_send_times(struct efx_nic *efx, > struct pps_event_time now; > struct timespec64 limit; > struct efx_ptp_data *ptp = efx->ptp_data; > - struct timespec64 start; > int *mc_running = ptp->start.addr; > > pps_get_ts(&now); > - start = now.ts_real; > limit = now.ts_real; > timespec64_add_ns(&limit, SYNCHRONISE_PERIOD_NS); > > From 1583574741369515099@xxx Thu Nov 09 08:02:38 +0000 2017 X-GM-THRID: 1583574741369515099 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread