summaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/falcon.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2008-05-16 21:19:43 +0100
committerJeff Garzik <jgarzik@redhat.com>2008-05-22 05:59:32 -0400
commit5daab96d873721cb84f4583f232b88fcd67c51fb (patch)
treed947a060c590db080f68cfd4d3f405a037b9f670 /drivers/net/sfc/falcon.c
parent24c28edc5a1b1dc4677eb13408ff3492d65df159 (diff)
downloadblackbird-obmc-linux-5daab96d873721cb84f4583f232b88fcd67c51fb.tar.gz
blackbird-obmc-linux-5daab96d873721cb84f4583f232b88fcd67c51fb.zip
sfc: Change type of efx_nic::nic_data to struct falcon_nic_data *
Remove redundant casts and variable. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/sfc/falcon.c')
-rw-r--r--drivers/net/sfc/falcon.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/sfc/falcon.c b/drivers/net/sfc/falcon.c
index 475b596383cd..ac14460e3558 100644
--- a/drivers/net/sfc/falcon.c
+++ b/drivers/net/sfc/falcon.c
@@ -2411,7 +2411,7 @@ int falcon_probe_nic(struct efx_nic *efx)
/* Allocate storage for hardware specific data */
nic_data = kzalloc(sizeof(*nic_data), GFP_KERNEL);
- efx->nic_data = (void *) nic_data;
+ efx->nic_data = nic_data;
/* Determine number of ports etc. */
rc = falcon_probe_nic_variant(efx);
@@ -2481,13 +2481,10 @@ int falcon_probe_nic(struct efx_nic *efx)
*/
int falcon_init_nic(struct efx_nic *efx)
{
- struct falcon_nic_data *data;
efx_oword_t temp;
unsigned thresh;
int rc;
- data = (struct falcon_nic_data *)efx->nic_data;
-
/* Set up the address region register. This is only needed
* for the B0 FPGA, but since we are just pushing in the
* reset defaults this may as well be unconditional. */
OpenPOWER on IntegriCloud