Commit a3542e66 authored by Sherif Shehab Aldin's avatar Sherif Shehab Aldin Committed by Greg Kroah-Hartman

driver: staging: wlan-ng: Fixed white spaces issues

In hfa384x_usb.c:
Moved Logical continuations to the correct lines
Removed unnecessary blank lines
Signed-off-by: default avatarSherif Shehab Aldin <shehabaldin.sherif@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3f2d6564
...@@ -398,9 +398,8 @@ static int submit_tx_urb(hfa384x_t *hw, struct urb *tx_urb, gfp_t memflags) ...@@ -398,9 +398,8 @@ static int submit_tx_urb(hfa384x_t *hw, struct urb *tx_urb, gfp_t memflags)
result = -ENOLINK; result = -ENOLINK;
if (netif_running(netdev)) { if (netif_running(netdev)) {
if (!hw->wlandev->hwremoved &&
if (!hw->wlandev->hwremoved !test_bit(WORK_TX_HALT, &hw->usb_flags)) {
&& !test_bit(WORK_TX_HALT, &hw->usb_flags)) {
result = SUBMIT_URB(tx_urb, memflags); result = SUBMIT_URB(tx_urb, memflags);
/* Test whether we need to reset the TX pipe */ /* Test whether we need to reset the TX pipe */
...@@ -656,7 +655,6 @@ usbctlx_get_rridresult(const hfa384x_usb_rridresp_t *rridresp, ...@@ -656,7 +655,6 @@ usbctlx_get_rridresult(const hfa384x_usb_rridresp_t *rridresp,
result->rid = le16_to_cpu(rridresp->rid); result->rid = le16_to_cpu(rridresp->rid);
result->riddata = rridresp->data; result->riddata = rridresp->data;
result->riddata_len = ((le16_to_cpu(rridresp->frmlen) - 1) * 2); result->riddata_len = ((le16_to_cpu(rridresp->frmlen) - 1) * 2);
} }
/*---------------------------------------------------------------- /*----------------------------------------------------------------
...@@ -2845,7 +2843,6 @@ static void hfa384x_usbctlx_reaper_task(unsigned long data) ...@@ -2845,7 +2843,6 @@ static void hfa384x_usbctlx_reaper_task(unsigned long data)
} }
spin_unlock_irqrestore(&hw->ctlxq.lock, flags); spin_unlock_irqrestore(&hw->ctlxq.lock, flags);
} }
/*---------------------------------------------------------------- /*----------------------------------------------------------------
...@@ -3706,7 +3703,6 @@ static void hfa384x_usbout_callback(struct urb *urb) ...@@ -3706,7 +3703,6 @@ static void hfa384x_usbout_callback(struct urb *urb)
#endif #endif
if (wlandev && wlandev->netdev) { if (wlandev && wlandev->netdev) {
switch (urb->status) { switch (urb->status) {
case 0: case 0:
hfa384x_usbout_tx(wlandev, usbout); hfa384x_usbout_tx(wlandev, usbout);
...@@ -3732,8 +3728,8 @@ static void hfa384x_usbout_callback(struct urb *urb) ...@@ -3732,8 +3728,8 @@ static void hfa384x_usbout_callback(struct urb *urb)
hfa384x_t *hw = wlandev->priv; hfa384x_t *hw = wlandev->priv;
if (!test_and_set_bit if (!test_and_set_bit
(THROTTLE_TX, &hw->usb_flags) (THROTTLE_TX, &hw->usb_flags) &&
&& !timer_pending(&hw->throttle)) { !timer_pending(&hw->throttle)) {
mod_timer(&hw->throttle, mod_timer(&hw->throttle,
jiffies + THROTTLE_JIFFIES); jiffies + THROTTLE_JIFFIES);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment