staging: wlan-ng: hfa384x_usb: Remove wrapper function

Remove wrapper function that can be replaced by a single line of code.

As a result of the change, there is an unused variable which has also
been removed in this patch.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Amitoj Kaur Chawla 2015-10-31 15:47:38 +05:30 committed by Greg Kroah-Hartman
parent 4e2cdf9324
commit 6ba714bb5f
1 changed files with 1 additions and 29 deletions

View File

@ -177,9 +177,6 @@ static void hfa384x_usbin_rx(wlandevice_t *wlandev, struct sk_buff *skb);
static void hfa384x_usbin_info(wlandevice_t *wlandev, hfa384x_usbin_t *usbin); static void hfa384x_usbin_info(wlandevice_t *wlandev, hfa384x_usbin_t *usbin);
static void
hfa384x_usbout_tx(wlandevice_t *wlandev, hfa384x_usbout_t *usbout);
static void hfa384x_usbin_ctlx(hfa384x_t *hw, hfa384x_usbin_t *usbin, static void hfa384x_usbin_ctlx(hfa384x_t *hw, hfa384x_usbin_t *usbin,
int urb_status); int urb_status);
@ -3674,7 +3671,6 @@ static void hfa384x_usbin_info(wlandevice_t *wlandev, hfa384x_usbin_t *usbin)
static void hfa384x_usbout_callback(struct urb *urb) static void hfa384x_usbout_callback(struct urb *urb)
{ {
wlandevice_t *wlandev = urb->context; wlandevice_t *wlandev = urb->context;
hfa384x_usbout_t *usbout = urb->transfer_buffer;
#ifdef DEBUG_USB #ifdef DEBUG_USB
dbprint_urb(urb); dbprint_urb(urb);
@ -3683,7 +3679,7 @@ static void hfa384x_usbout_callback(struct urb *urb)
if (wlandev && wlandev->netdev) { if (wlandev && wlandev->netdev) {
switch (urb->status) { switch (urb->status) {
case 0: case 0:
hfa384x_usbout_tx(wlandev, usbout); prism2sta_ev_alloc(wlandev);
break; break;
case -EPIPE: case -EPIPE:
@ -4037,30 +4033,6 @@ static int hfa384x_usbctlx_submit(hfa384x_t *hw, hfa384x_usbctlx_t *ctlx)
return 0; return 0;
} }
/*----------------------------------------------------------------
* hfa384x_usbout_tx
*
* At this point we have finished a send of a frame. Mark the URB
* as available and call ev_alloc to notify higher layers we're
* ready for more.
*
* Arguments:
* wlandev wlan device
* usbout ptr to the usb transfer buffer
*
* Returns:
* nothing
*
* Side effects:
*
* Call context:
* interrupt
----------------------------------------------------------------*/
static void hfa384x_usbout_tx(wlandevice_t *wlandev, hfa384x_usbout_t *usbout)
{
prism2sta_ev_alloc(wlandev);
}
/*---------------------------------------------------------------- /*----------------------------------------------------------------
* hfa384x_isgood_pdrcore * hfa384x_isgood_pdrcore
* *