Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Amitoj Kaur Chawla and committed by
Greg Kroah-Hartman
6ba714bb 4e2cdf93

+1 -29
+1 -29
drivers/staging/wlan-ng/hfa384x_usb.c
··· 177 177 178 178 static void hfa384x_usbin_info(wlandevice_t *wlandev, hfa384x_usbin_t *usbin); 179 179 180 - static void 181 - hfa384x_usbout_tx(wlandevice_t *wlandev, hfa384x_usbout_t *usbout); 182 - 183 180 static void hfa384x_usbin_ctlx(hfa384x_t *hw, hfa384x_usbin_t *usbin, 184 181 int urb_status); 185 182 ··· 3671 3674 static void hfa384x_usbout_callback(struct urb *urb) 3672 3675 { 3673 3676 wlandevice_t *wlandev = urb->context; 3674 - hfa384x_usbout_t *usbout = urb->transfer_buffer; 3675 3677 3676 3678 #ifdef DEBUG_USB 3677 3679 dbprint_urb(urb); ··· 3679 3683 if (wlandev && wlandev->netdev) { 3680 3684 switch (urb->status) { 3681 3685 case 0: 3682 - hfa384x_usbout_tx(wlandev, usbout); 3686 + prism2sta_ev_alloc(wlandev); 3683 3687 break; 3684 3688 3685 3689 case -EPIPE: ··· 4031 4035 hfa384x_usbctlxq_run(hw); 4032 4036 4033 4037 return 0; 4034 - } 4035 - 4036 - /*---------------------------------------------------------------- 4037 - * hfa384x_usbout_tx 4038 - * 4039 - * At this point we have finished a send of a frame. Mark the URB 4040 - * as available and call ev_alloc to notify higher layers we're 4041 - * ready for more. 4042 - * 4043 - * Arguments: 4044 - * wlandev wlan device 4045 - * usbout ptr to the usb transfer buffer 4046 - * 4047 - * Returns: 4048 - * nothing 4049 - * 4050 - * Side effects: 4051 - * 4052 - * Call context: 4053 - * interrupt 4054 - ----------------------------------------------------------------*/ 4055 - static void hfa384x_usbout_tx(wlandevice_t *wlandev, hfa384x_usbout_t *usbout) 4056 - { 4057 - prism2sta_ev_alloc(wlandev); 4058 4038 } 4059 4039 4060 4040 /*----------------------------------------------------------------