diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 00:04:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 00:04:44 -0400 |
commit | f8965467f366fd18f01feafb5db10512d7b4422c (patch) | |
tree | 3706a9cd779859271ca61b85c63a1bc3f82d626e /drivers/net/wireless/zd1201.c | |
parent | a26272e5200765691e67d6780e52b32498fdb659 (diff) | |
parent | 2ec8c6bb5d8f3a62a79f463525054bae1e3d4487 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1674 commits)
qlcnic: adding co maintainer
ixgbe: add support for active DA cables
ixgbe: dcb, do not tag tc_prio_control frames
ixgbe: fix ixgbe_tx_is_paused logic
ixgbe: always enable vlan strip/insert when DCB is enabled
ixgbe: remove some redundant code in setting FCoE FIP filter
ixgbe: fix wrong offset to fc_frame_header in ixgbe_fcoe_ddp
ixgbe: fix header len when unsplit packet overflows to data buffer
ipv6: Never schedule DAD timer on dead address
ipv6: Use POSTDAD state
ipv6: Use state_lock to protect ifa state
ipv6: Replace inet6_ifaddr->dead with state
cxgb4: notify upper drivers if the device is already up when they load
cxgb4: keep interrupts available when the ports are brought down
cxgb4: fix initial addition of MAC address
cnic: Return SPQ credit to bnx2x after ring setup and shutdown.
cnic: Convert cnic_local_flags to atomic ops.
can: Fix SJA1000 command register writes on SMP systems
bridge: fix build for CONFIG_SYSFS disabled
ARCNET: Limit com20020 PCI ID matches for SOHARD cards
...
Fix up various conflicts with pcmcia tree drivers/net/
{pcmcia/3c589_cs.c, wireless/orinoco/orinoco_cs.c and
wireless/orinoco/spectrum_cs.c} and feature removal
(Documentation/feature-removal-schedule.txt).
Also fix a non-content conflict due to pm_qos_requirement getting
renamed in the PM tree (now pm_qos_request) in net/mac80211/scan.c
Diffstat (limited to 'drivers/net/wireless/zd1201.c')
-rw-r--r-- | drivers/net/wireless/zd1201.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/net/wireless/zd1201.c b/drivers/net/wireless/zd1201.c index 9d1277874645..390d77f762c4 100644 --- a/drivers/net/wireless/zd1201.c +++ b/drivers/net/wireless/zd1201.c | |||
@@ -134,7 +134,6 @@ static void zd1201_usbfree(struct urb *urb) | |||
134 | 134 | ||
135 | kfree(urb->transfer_buffer); | 135 | kfree(urb->transfer_buffer); |
136 | usb_free_urb(urb); | 136 | usb_free_urb(urb); |
137 | return; | ||
138 | } | 137 | } |
139 | 138 | ||
140 | /* cmdreq message: | 139 | /* cmdreq message: |
@@ -185,7 +184,6 @@ static void zd1201_usbtx(struct urb *urb) | |||
185 | { | 184 | { |
186 | struct zd1201 *zd = urb->context; | 185 | struct zd1201 *zd = urb->context; |
187 | netif_wake_queue(zd->dev); | 186 | netif_wake_queue(zd->dev); |
188 | return; | ||
189 | } | 187 | } |
190 | 188 | ||
191 | /* Incoming data */ | 189 | /* Incoming data */ |
@@ -407,7 +405,6 @@ exit: | |||
407 | wake_up(&zd->rxdataq); | 405 | wake_up(&zd->rxdataq); |
408 | kfree(urb->transfer_buffer); | 406 | kfree(urb->transfer_buffer); |
409 | } | 407 | } |
410 | return; | ||
411 | } | 408 | } |
412 | 409 | ||
413 | static int zd1201_getconfig(struct zd1201 *zd, int rid, void *riddata, | 410 | static int zd1201_getconfig(struct zd1201 *zd, int rid, void *riddata, |
@@ -827,7 +824,6 @@ static netdev_tx_t zd1201_hard_start_xmit(struct sk_buff *skb, | |||
827 | } else { | 824 | } else { |
828 | dev->stats.tx_packets++; | 825 | dev->stats.tx_packets++; |
829 | dev->stats.tx_bytes += skb->len; | 826 | dev->stats.tx_bytes += skb->len; |
830 | dev->trans_start = jiffies; | ||
831 | } | 827 | } |
832 | kfree_skb(skb); | 828 | kfree_skb(skb); |
833 | 829 | ||
@@ -845,7 +841,7 @@ static void zd1201_tx_timeout(struct net_device *dev) | |||
845 | usb_unlink_urb(zd->tx_urb); | 841 | usb_unlink_urb(zd->tx_urb); |
846 | dev->stats.tx_errors++; | 842 | dev->stats.tx_errors++; |
847 | /* Restart the timeout to quiet the watchdog: */ | 843 | /* Restart the timeout to quiet the watchdog: */ |
848 | dev->trans_start = jiffies; | 844 | dev->trans_start = jiffies; /* prevent tx timeout */ |
849 | } | 845 | } |
850 | 846 | ||
851 | static int zd1201_set_mac_address(struct net_device *dev, void *p) | 847 | static int zd1201_set_mac_address(struct net_device *dev, void *p) |
@@ -876,7 +872,7 @@ static struct iw_statistics *zd1201_get_wireless_stats(struct net_device *dev) | |||
876 | static void zd1201_set_multicast(struct net_device *dev) | 872 | static void zd1201_set_multicast(struct net_device *dev) |
877 | { | 873 | { |
878 | struct zd1201 *zd = netdev_priv(dev); | 874 | struct zd1201 *zd = netdev_priv(dev); |
879 | struct dev_mc_list *mc; | 875 | struct netdev_hw_addr *ha; |
880 | unsigned char reqbuf[ETH_ALEN*ZD1201_MAXMULTI]; | 876 | unsigned char reqbuf[ETH_ALEN*ZD1201_MAXMULTI]; |
881 | int i; | 877 | int i; |
882 | 878 | ||
@@ -884,8 +880,8 @@ static void zd1201_set_multicast(struct net_device *dev) | |||
884 | return; | 880 | return; |
885 | 881 | ||
886 | i = 0; | 882 | i = 0; |
887 | netdev_for_each_mc_addr(mc, dev) | 883 | netdev_for_each_mc_addr(ha, dev) |
888 | memcpy(reqbuf + i++ * ETH_ALEN, mc->dmi_addr, ETH_ALEN); | 884 | memcpy(reqbuf + i++ * ETH_ALEN, ha->addr, ETH_ALEN); |
889 | zd1201_setconfig(zd, ZD1201_RID_CNFGROUPADDRESS, reqbuf, | 885 | zd1201_setconfig(zd, ZD1201_RID_CNFGROUPADDRESS, reqbuf, |
890 | netdev_mc_count(dev) * ETH_ALEN, 0); | 886 | netdev_mc_count(dev) * ETH_ALEN, 0); |
891 | } | 887 | } |