diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/net/usb/sierra_net.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/net/usb/sierra_net.c')
-rw-r--r-- | drivers/net/usb/sierra_net.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/usb/sierra_net.c b/drivers/net/usb/sierra_net.c index ee85c8b9a858..ed1b43210584 100644 --- a/drivers/net/usb/sierra_net.c +++ b/drivers/net/usb/sierra_net.c | |||
@@ -203,7 +203,7 @@ static inline void sierra_net_set_private(struct usbnet *dev, | |||
203 | /* is packet IPv4 */ | 203 | /* is packet IPv4 */ |
204 | static inline int is_ip(struct sk_buff *skb) | 204 | static inline int is_ip(struct sk_buff *skb) |
205 | { | 205 | { |
206 | return (skb->protocol == cpu_to_be16(ETH_P_IP)); | 206 | return skb->protocol == cpu_to_be16(ETH_P_IP); |
207 | } | 207 | } |
208 | 208 | ||
209 | /* | 209 | /* |
@@ -354,7 +354,7 @@ static void sierra_net_set_ctx_index(struct sierra_net_data *priv, u8 ctx_ix) | |||
354 | 354 | ||
355 | static inline int sierra_net_is_valid_addrlen(u8 len) | 355 | static inline int sierra_net_is_valid_addrlen(u8 len) |
356 | { | 356 | { |
357 | return (len == sizeof(struct in_addr)); | 357 | return len == sizeof(struct in_addr); |
358 | } | 358 | } |
359 | 359 | ||
360 | static int sierra_net_parse_lsi(struct usbnet *dev, char *data, int datalen) | 360 | static int sierra_net_parse_lsi(struct usbnet *dev, char *data, int datalen) |
@@ -802,10 +802,9 @@ static void sierra_net_unbind(struct usbnet *dev, struct usb_interface *intf) | |||
802 | 802 | ||
803 | dev_dbg(&dev->udev->dev, "%s", __func__); | 803 | dev_dbg(&dev->udev->dev, "%s", __func__); |
804 | 804 | ||
805 | /* Kill the timer then flush the work queue */ | 805 | /* kill the timer and work */ |
806 | del_timer_sync(&priv->sync_timer); | 806 | del_timer_sync(&priv->sync_timer); |
807 | 807 | cancel_work_sync(&priv->sierra_net_kevent); | |
808 | flush_scheduled_work(); | ||
809 | 808 | ||
810 | /* tell modem we are going away */ | 809 | /* tell modem we are going away */ |
811 | status = sierra_net_send_cmd(dev, priv->shdwn_msg, | 810 | status = sierra_net_send_cmd(dev, priv->shdwn_msg, |