* [PATCH]spider_net:remove '&' in the init of function pointers
@ 2009-03-20 8:18 Yang Hongyang
2009-03-20 8:21 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: Yang Hongyang @ 2009-03-20 8:18 UTC (permalink / raw)
To: David Miller; +Cc: jens, kou.ishizaki, netdev@vger.kernel.org
Do not need '&' in the init of function pointers.
Signed-off-by: Yang Hongyang <yanghy@cn.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
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH]spider_net:remove '&' in the init of function pointers
2009-03-20 8:18 [PATCH]spider_net:remove '&' in the init of function pointers Yang Hongyang
@ 2009-03-20 8:21 ` David Miller
2009-03-20 8:24 ` Yang Hongyang
2009-03-20 8:32 ` Yang Hongyang
0 siblings, 2 replies; 4+ messages in thread
From: David Miller @ 2009-03-20 8:21 UTC (permalink / raw)
To: yanghy; +Cc: jens, kou.ishizaki, netdev
From: Yang Hongyang <yanghy@cn.fujitsu.com>
Date: Fri, 20 Mar 2009 16:18:37 +0800
> Do not need '&' in the init of function pointers.
>
> Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
It's harmless, just leave it alone. This is just going to be commit
noise.
More useful would be to convert this driver over to net_device_ops.
I'm not applying this.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH]spider_net:remove '&' in the init of function pointers
2009-03-20 8:21 ` David Miller
@ 2009-03-20 8:24 ` Yang Hongyang
2009-03-20 8:32 ` Yang Hongyang
1 sibling, 0 replies; 4+ messages in thread
From: Yang Hongyang @ 2009-03-20 8:24 UTC (permalink / raw)
To: David Miller; +Cc: jens, kou.ishizaki, netdev
David Miller wrote:
> From: Yang Hongyang <yanghy@cn.fujitsu.com>
> Date: Fri, 20 Mar 2009 16:18:37 +0800
>
>> Do not need '&' in the init of function pointers.
>>
>> Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
>
> It's harmless, just leave it alone. This is just going to be commit
> noise.
OK.
>
> More useful would be to convert this driver over to net_device_ops.
>
> I'm not applying this.
>
>
--
Regards
Yang Hongyang
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH]spider_net:remove '&' in the init of function pointers
2009-03-20 8:21 ` David Miller
2009-03-20 8:24 ` Yang Hongyang
@ 2009-03-20 8:32 ` Yang Hongyang
1 sibling, 0 replies; 4+ messages in thread
From: Yang Hongyang @ 2009-03-20 8:32 UTC (permalink / raw)
To: David Miller; +Cc: jens, kou.ishizaki, netdev
David Miller wrote:
> From: Yang Hongyang <yanghy@cn.fujitsu.com>
> Date: Fri, 20 Mar 2009 16:18:37 +0800
>
>> Do not need '&' in the init of function pointers.
>>
>> Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
>
> It's harmless, just leave it alone. This is just going to be commit
> noise.
>
> More useful would be to convert this driver over to net_device_ops.
I'll do that.
>
> I'm not applying this.
>
>
--
Regards
Yang Hongyang
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-03-20 8:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-20 8:18 [PATCH]spider_net:remove '&' in the init of function pointers Yang Hongyang
2009-03-20 8:21 ` David Miller
2009-03-20 8:24 ` Yang Hongyang
2009-03-20 8:32 ` Yang Hongyang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).