]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
net: sfc: remove redundant variable start
authorColin Ian King <colin.king@canonical.com>
Thu, 9 Nov 2017 08:01:22 +0000 (08:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2017 10:14:14 +0000 (19:14 +0900)
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>
drivers/net/ethernet/sfc/ptp.c

index 60cdb97f58e2e315cf690ee58a16004926528583..4f54245df0ec0dd685895059e87a6d9cd1abe958 100644 (file)
@@ -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);