summaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/efx.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2008-05-16 22:20:00 +0200
committerJeff Garzik <jgarzik@redhat.com>2008-05-22 11:59:33 +0200
commitd3208b5ebae9e62c32f0cf74dce1d4ddfac3f895 (patch)
treebbb47346216735e8e6ffb4c9f4be89ac0de0a12a /drivers/net/sfc/efx.c
parentsfc: Change type of efx_nic::nic_data to struct falcon_nic_data * (diff)
downloadlinux-d3208b5ebae9e62c32f0cf74dce1d4ddfac3f895.tar.xz
linux-d3208b5ebae9e62c32f0cf74dce1d4ddfac3f895.zip
sfc: Remove redundant casts to and from void *
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/sfc/efx.c')
-rw-r--r--drivers/net/sfc/efx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c
index 11ee0d4407c4..449760642e31 100644
--- a/drivers/net/sfc/efx.c
+++ b/drivers/net/sfc/efx.c
@@ -1490,7 +1490,7 @@ static void efx_set_multicast_list(struct net_device *net_dev)
static int efx_netdev_event(struct notifier_block *this,
unsigned long event, void *ptr)
{
- struct net_device *net_dev = (struct net_device *)ptr;
+ struct net_device *net_dev = ptr;
if (net_dev->open == efx_net_open && event == NETDEV_CHANGENAME) {
struct efx_nic *efx = net_dev->priv;