[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <49C3515D.7090703@cn.fujitsu.com>
Date: Fri, 20 Mar 2009 16:18:37 +0800
From: Yang Hongyang <yanghy@...fujitsu.com>
To: David Miller <davem@...emloft.net>
CC: jens@...ibm.com, kou.ishizaki@...hiba.co.jp,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: [PATCH]spider_net:remove '&' in the init of function pointers
Do not need '&' in the init of function pointers.
Signed-off-by: Yang Hongyang <yanghy@...fujitsu.com>
---
drivers/net/spider_net.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/drivers/net/spider_net.c b/drivers/net/spider_net.c
index 88d2c67..247fe9b 100644
--- a/drivers/net/spider_net.c
+++ b/drivers/net/spider_net.c
@@ -2268,20 +2268,20 @@ spider_net_tx_timeout(struct net_device *netdev)
static void
spider_net_setup_netdev_ops(struct net_device *netdev)
{
- netdev->open = &spider_net_open;
- netdev->stop = &spider_net_stop;
- netdev->hard_start_xmit = &spider_net_xmit;
- netdev->set_multicast_list = &spider_net_set_multi;
- netdev->set_mac_address = &spider_net_set_mac;
- netdev->change_mtu = &spider_net_change_mtu;
- netdev->do_ioctl = &spider_net_do_ioctl;
+ netdev->open = spider_net_open;
+ netdev->stop = spider_net_stop;
+ netdev->hard_start_xmit = spider_net_xmit;
+ netdev->set_multicast_list = spider_net_set_multi;
+ netdev->set_mac_address = spider_net_set_mac;
+ netdev->change_mtu = spider_net_change_mtu;
+ netdev->do_ioctl = spider_net_do_ioctl;
/* tx watchdog */
- netdev->tx_timeout = &spider_net_tx_timeout;
+ netdev->tx_timeout = spider_net_tx_timeout;
netdev->watchdog_timeo = SPIDER_NET_WATCHDOG_TIMEOUT;
/* HW VLAN */
#ifdef CONFIG_NET_POLL_CONTROLLER
/* poll controller */
- netdev->poll_controller = &spider_net_poll_controller;
+ netdev->poll_controller = spider_net_poll_controller;
#endif /* CONFIG_NET_POLL_CONTROLLER */
/* ethtool ops */
netdev->ethtool_ops = &spider_net_ethtool_ops;
--
1.6.0.3
--
Regards
Yang Hongyang
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists