sfc: Remove redundant casts to and from void *

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
Ben Hutchings
2008-05-16 21:20:00 +01:00
committed by Jeff Garzik
parent 5daab96d87
commit d3208b5eba
5 changed files with 17 additions and 17 deletions

View File

@@ -290,7 +290,7 @@ void efx_loopback_rx_packet(struct efx_nic *efx,
payload = &state->payload;
received = (struct efx_loopback_payload *)(char *) buf_ptr;
received = (struct efx_loopback_payload *) buf_ptr;
received->ip.saddr = payload->ip.saddr;
received->ip.check = payload->ip.check;
@@ -700,7 +700,7 @@ int efx_offline_test(struct efx_nic *efx,
* "flushing" so all inflight packets are dropped */
BUG_ON(efx->loopback_selftest);
state->flush = 1;
efx->loopback_selftest = (void *)state;
efx->loopback_selftest = state;
rc = efx_test_loopbacks(efx, tests, loopback_modes);