]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: wlan-ng: Remove wrapper function
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Sat, 31 Oct 2015 10:21:04 +0000 (15:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
Remove wrapper function that can be replaced by a single line of code.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/hfa384x_usb.c
drivers/staging/wlan-ng/prism2mgmt.h
drivers/staging/wlan-ng/prism2sta.c

index 444ebed7313a4320e0b8667b61a1cdda071b178e..e3c9860fb2cb77735e17c238ed48db04e7b9f713 100644 (file)
@@ -3504,7 +3504,7 @@ static void hfa384x_usbin_rx(wlandevice_t *wlandev, struct sk_buff *skb)
                rxmeta->signal = usbin->rxfrm.desc.signal - hw->dbmadjust;
                rxmeta->noise = usbin->rxfrm.desc.silence - hw->dbmadjust;
 
-               prism2sta_ev_rx(wlandev, skb);
+               p80211netdev_rx(wlandev, skb);
 
                break;
 
@@ -3628,7 +3628,7 @@ static void hfa384x_int_rxmonitor(wlandevice_t *wlandev,
        }
 
        /* pass it back up */
-       prism2sta_ev_rx(wlandev, skb);
+       p80211netdev_rx(wlandev, skb);
 }
 
 /*----------------------------------------------------------------
index 16f12395910459446dd2b9de5c3f218fd2c87852..7a9f424607b754431bce22d55f386ec3a2630946 100644 (file)
@@ -68,7 +68,6 @@ u32 prism2sta_ifstate(wlandevice_t *wlandev, u32 ifstate);
 void prism2sta_ev_info(wlandevice_t *wlandev, hfa384x_InfFrame_t *inf);
 void prism2sta_ev_txexc(wlandevice_t *wlandev, u16 status);
 void prism2sta_ev_tx(wlandevice_t *wlandev, u16 status);
-void prism2sta_ev_rx(wlandevice_t *wlandev, struct sk_buff *skb);
 void prism2sta_ev_alloc(wlandevice_t *wlandev);
 
 int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp);
index c57f48a1d8df756169116305f5cca6495fad413e..131223afd918e40b0ab6a97d69feb595fcef155a 100644 (file)
@@ -1836,27 +1836,6 @@ void prism2sta_ev_tx(wlandevice_t *wlandev, u16 status)
        wlandev->netdev->stats.tx_packets++;
 }
 
-/*
- * prism2sta_ev_rx
- *
- * Handles the Rx event.
- *
- * Arguments:
- *     wlandev         wlan device structure
- *
- * Returns:
- *     nothing
- *
- * Side effects:
- *
- * Call context:
- *     interrupt
- */
-void prism2sta_ev_rx(wlandevice_t *wlandev, struct sk_buff *skb)
-{
-       p80211netdev_rx(wlandev, skb);
-}
-
 /*
  * prism2sta_ev_alloc
  *