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

driver: staging: wlan-ng: Removed unnecessary spaces after cast from hfa384x_usb.c

Fixed: No space is necessary after a cast
Signed-off-by: default avatarSherif Shehab Aldin <shehabaldin.sherif@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 638f81b8
...@@ -673,7 +673,7 @@ static inline int usbctlx_cmd_completor_fn(struct usbctlx_completor *head) ...@@ -673,7 +673,7 @@ static inline int usbctlx_cmd_completor_fn(struct usbctlx_completor *head)
{ {
struct usbctlx_cmd_completor *complete; struct usbctlx_cmd_completor *complete;
complete = (struct usbctlx_cmd_completor *) head; complete = (struct usbctlx_cmd_completor *)head;
return usbctlx_get_status(complete->cmdresp, complete->result); return usbctlx_get_status(complete->cmdresp, complete->result);
} }
...@@ -708,7 +708,7 @@ static int usbctlx_rrid_completor_fn(struct usbctlx_completor *head) ...@@ -708,7 +708,7 @@ static int usbctlx_rrid_completor_fn(struct usbctlx_completor *head)
struct usbctlx_rrid_completor *complete; struct usbctlx_rrid_completor *complete;
hfa384x_rridresult_t rridresult; hfa384x_rridresult_t rridresult;
complete = (struct usbctlx_rrid_completor *) head; complete = (struct usbctlx_rrid_completor *)head;
usbctlx_get_rridresult(complete->rridresp, &rridresult); usbctlx_get_rridresult(complete->rridresp, &rridresult);
/* Validate the length, note body len calculation in bytes */ /* Validate the length, note body len calculation in bytes */
...@@ -2819,7 +2819,7 @@ void hfa384x_tx_timeout(wlandevice_t *wlandev) ...@@ -2819,7 +2819,7 @@ void hfa384x_tx_timeout(wlandevice_t *wlandev)
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
static void hfa384x_usbctlx_reaper_task(unsigned long data) static void hfa384x_usbctlx_reaper_task(unsigned long data)
{ {
hfa384x_t *hw = (hfa384x_t *) data; hfa384x_t *hw = (hfa384x_t *)data;
struct list_head *entry; struct list_head *entry;
struct list_head *temp; struct list_head *temp;
unsigned long flags; unsigned long flags;
...@@ -2856,7 +2856,7 @@ static void hfa384x_usbctlx_reaper_task(unsigned long data) ...@@ -2856,7 +2856,7 @@ static void hfa384x_usbctlx_reaper_task(unsigned long data)
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
static void hfa384x_usbctlx_completion_task(unsigned long data) static void hfa384x_usbctlx_completion_task(unsigned long data)
{ {
hfa384x_t *hw = (hfa384x_t *) data; hfa384x_t *hw = (hfa384x_t *)data;
struct list_head *entry; struct list_head *entry;
struct list_head *temp; struct list_head *temp;
unsigned long flags; unsigned long flags;
...@@ -3128,7 +3128,7 @@ static void hfa384x_usbin_callback(struct urb *urb) ...@@ -3128,7 +3128,7 @@ static void hfa384x_usbin_callback(struct urb *urb)
{ {
wlandevice_t *wlandev = urb->context; wlandevice_t *wlandev = urb->context;
hfa384x_t *hw; hfa384x_t *hw;
hfa384x_usbin_t *usbin = (hfa384x_usbin_t *) urb->transfer_buffer; hfa384x_usbin_t *usbin = (hfa384x_usbin_t *)urb->transfer_buffer;
struct sk_buff *skb = NULL; struct sk_buff *skb = NULL;
int result; int result;
int urb_status; int urb_status;
...@@ -3456,7 +3456,7 @@ static void hfa384x_usbin_txcompl(wlandevice_t *wlandev, ...@@ -3456,7 +3456,7 @@ static void hfa384x_usbin_txcompl(wlandevice_t *wlandev,
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
static void hfa384x_usbin_rx(wlandevice_t *wlandev, struct sk_buff *skb) static void hfa384x_usbin_rx(wlandevice_t *wlandev, struct sk_buff *skb)
{ {
hfa384x_usbin_t *usbin = (hfa384x_usbin_t *) skb->data; hfa384x_usbin_t *usbin = (hfa384x_usbin_t *)skb->data;
hfa384x_t *hw = wlandev->priv; hfa384x_t *hw = wlandev->priv;
int hdrlen; int hdrlen;
struct p80211_rxmeta *rxmeta; struct p80211_rxmeta *rxmeta;
...@@ -3601,7 +3601,7 @@ static void hfa384x_int_rxmonitor(wlandevice_t *wlandev, ...@@ -3601,7 +3601,7 @@ static void hfa384x_int_rxmonitor(wlandevice_t *wlandev,
struct p80211_caphdr *caphdr; struct p80211_caphdr *caphdr;
/* The NEW header format! */ /* The NEW header format! */
datap = skb_put(skb, sizeof(struct p80211_caphdr)); datap = skb_put(skb, sizeof(struct p80211_caphdr));
caphdr = (struct p80211_caphdr *) datap; caphdr = (struct p80211_caphdr *)datap;
caphdr->version = htonl(P80211CAPTURE_VERSION); caphdr->version = htonl(P80211CAPTURE_VERSION);
caphdr->length = htonl(sizeof(struct p80211_caphdr)); caphdr->length = htonl(sizeof(struct p80211_caphdr));
...@@ -3896,7 +3896,7 @@ static void hfa384x_ctlxout_callback(struct urb *urb) ...@@ -3896,7 +3896,7 @@ static void hfa384x_ctlxout_callback(struct urb *urb)
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
static void hfa384x_usbctlx_reqtimerfn(unsigned long data) static void hfa384x_usbctlx_reqtimerfn(unsigned long data)
{ {
hfa384x_t *hw = (hfa384x_t *) data; hfa384x_t *hw = (hfa384x_t *)data;
unsigned long flags; unsigned long flags;
spin_lock_irqsave(&hw->ctlxq.lock, flags); spin_lock_irqsave(&hw->ctlxq.lock, flags);
...@@ -3954,7 +3954,7 @@ static void hfa384x_usbctlx_reqtimerfn(unsigned long data) ...@@ -3954,7 +3954,7 @@ static void hfa384x_usbctlx_reqtimerfn(unsigned long data)
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
static void hfa384x_usbctlx_resptimerfn(unsigned long data) static void hfa384x_usbctlx_resptimerfn(unsigned long data)
{ {
hfa384x_t *hw = (hfa384x_t *) data; hfa384x_t *hw = (hfa384x_t *)data;
unsigned long flags; unsigned long flags;
spin_lock_irqsave(&hw->ctlxq.lock, flags); spin_lock_irqsave(&hw->ctlxq.lock, flags);
...@@ -3993,7 +3993,7 @@ static void hfa384x_usbctlx_resptimerfn(unsigned long data) ...@@ -3993,7 +3993,7 @@ static void hfa384x_usbctlx_resptimerfn(unsigned long data)
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
static void hfa384x_usb_throttlefn(unsigned long data) static void hfa384x_usb_throttlefn(unsigned long data)
{ {
hfa384x_t *hw = (hfa384x_t *) data; hfa384x_t *hw = (hfa384x_t *)data;
unsigned long flags; unsigned long flags;
spin_lock_irqsave(&hw->ctlxq.lock, flags); spin_lock_irqsave(&hw->ctlxq.lock, flags);
......
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