aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/selftest.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sfc/selftest.c')
-rw-r--r--drivers/net/sfc/selftest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/sfc/selftest.c b/drivers/net/sfc/selftest.c
index 2fb69d8b3d70..c98f350525a7 100644
--- a/drivers/net/sfc/selftest.c
+++ b/drivers/net/sfc/selftest.c
@@ -290,7 +290,7 @@ void efx_loopback_rx_packet(struct efx_nic *efx,
290 290
291 payload = &state->payload; 291 payload = &state->payload;
292 292
293 received = (struct efx_loopback_payload *)(char *) buf_ptr; 293 received = (struct efx_loopback_payload *) buf_ptr;
294 received->ip.saddr = payload->ip.saddr; 294 received->ip.saddr = payload->ip.saddr;
295 received->ip.check = payload->ip.check; 295 received->ip.check = payload->ip.check;
296 296
@@ -700,7 +700,7 @@ int efx_offline_test(struct efx_nic *efx,
700 * "flushing" so all inflight packets are dropped */ 700 * "flushing" so all inflight packets are dropped */
701 BUG_ON(efx->loopback_selftest); 701 BUG_ON(efx->loopback_selftest);
702 state->flush = 1; 702 state->flush = 1;
703 efx->loopback_selftest = (void *)state; 703 efx->loopback_selftest = state;
704 704
705 rc = efx_test_loopbacks(efx, tests, loopback_modes); 705 rc = efx_test_loopbacks(efx, tests, loopback_modes);
706 706