summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/ptp.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-11-09 09:01:22 +0100
committerDavid S. Miller <davem@davemloft.net>2017-11-11 11:14:14 +0100
commit492d070f2495d4b200124ed44a35ab3d8f74ac93 (patch)
tree444491da4a8d8090fd15fbea661db858d1368070 /drivers/net/ethernet/sfc/ptp.c
parentqlge: remove duplicated assignment to mbcp (diff)
downloadlinux-492d070f2495d4b200124ed44a35ab3d8f74ac93.tar.xz
linux-492d070f2495d4b200124ed44a35ab3d8f74ac93.zip
net: sfc: remove redundant variable start
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 <colin.king@canonical.com> Acked-by: Bert Kenward <bkenward@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/ptp.c')
-rw-r--r--drivers/net/ethernet/sfc/ptp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sfc/ptp.c b/drivers/net/ethernet/sfc/ptp.c
index 60cdb97f58e2..4f54245df0ec 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);