[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200914.134310.87977518984554778.davem@davemloft.net>
Date: Mon, 14 Sep 2020 13:43:10 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: zhangchangzhong@...wei.com
Cc: fugang.duan@....com, kuba@...nel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next] net: fec: ptp: remove unused variable 'ns' in
fec_time_keep()
From: Zhang Changzhong <zhangchangzhong@...wei.com>
Date: Mon, 14 Sep 2020 21:14:24 +0800
> Fixes the following W=1 kernel build warning(s):
>
> drivers/net/ethernet/freescale/fec_ptp.c:523:6: warning:
> variable 'ns' set but not used [-Wunused-but-set-variable]
> 523 | u64 ns;
> | ^~
>
> After commit 6605b730c061 ("FEC: Add time stamping code and a PTP
> hardware clock"), variable 'ns' is never used in fec_time_keep(),
> so removing it to avoid build warning.
>
> Reported-by: Hulk Robot <hulkci@...wei.com>
> Signed-off-by: Zhang Changzhong <zhangchangzhong@...wei.com>
Applied.
Powered by blists - more mailing lists