staging: rtl8723au: Remove useless static functions
authorRoberta Dobrescu <roberta.dobrescu@gmail.com>
Thu, 30 Oct 2014 22:01:20 +0000 (00:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Nov 2014 00:09:27 +0000 (16:09 -0800)
This patch removes the static functions bthci_CmdSetEventFilter,
bthci_CmdReadRSSI and bthci_CmdHostNumberOfCompletedPackets, since their
body only consists of 'return HCI_STATUS_SUCCESS'.

Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/rtl8723a_bt-coexist.c

index 5de806e..d80ea4e 100644 (file)
@@ -1759,16 +1759,6 @@ static enum hci_status bthci_CmdReadConnectionAcceptTimeout(struct rtw_adapter *
        return status;
 }
 
-/* 7.3.3 */
-static enum hci_status
-bthci_CmdSetEventFilter(
-       struct rtw_adapter *padapter,
-       struct packet_irp_hcicmd_data *pHciCmd
-       )
-{
-       return HCI_STATUS_SUCCESS;
-}
-
 /* 7.3.14 */
 static enum hci_status
 bthci_CmdWriteConnectionAcceptTimeout(
@@ -2980,11 +2970,6 @@ bthci_CmdReadLinkQuality(
        return status;
 }
 
-static enum hci_status bthci_CmdReadRSSI(struct rtw_adapter *padapter)
-{
-       return HCI_STATUS_SUCCESS;
-}
-
 static enum hci_status
 bthci_CmdCreateLogicalLink(
        struct rtw_adapter *padapter,
@@ -4133,13 +4118,6 @@ bthci_CmdHostBufferSize(struct rtw_adapter *padapter,
 }
 
 static enum hci_status
-bthci_CmdHostNumberOfCompletedPackets(struct rtw_adapter *padapter,
-                                     struct packet_irp_hcicmd_data *pHciCmd)
-{
-       return HCI_STATUS_SUCCESS;
-}
-
-static enum hci_status
 bthci_UnknownCMD(struct rtw_adapter *padapter, struct packet_irp_hcicmd_data *pHciCmd)
 {
        enum hci_status status = HCI_STATUS_UNKNOW_HCI_CMD;
@@ -4212,7 +4190,6 @@ bthci_HandleOGFSetEventMaskCMD(struct rtw_adapter *padapter,
                break;
        case HCI_SET_EVENT_FILTER:
                RTPRINT(FIOCTL, IOCTL_BT_HCICMD, ("HCI_SET_EVENT_FILTER\n"));
-               status = bthci_CmdSetEventFilter(padapter, pHciCmd);
                break;
        case HCI_WRITE_CONNECTION_ACCEPT_TIMEOUT:
                RTPRINT(FIOCTL, IOCTL_BT_HCICMD, ("HCI_WRITE_CONNECTION_ACCEPT_TIMEOUT\n"));
@@ -4228,7 +4205,6 @@ bthci_HandleOGFSetEventMaskCMD(struct rtw_adapter *padapter,
                break;
        case HCI_HOST_NUMBER_OF_COMPLETED_PACKETS:
                RTPRINT(FIOCTL, IOCTL_BT_HCICMD, ("HCI_HOST_NUMBER_OF_COMPLETED_PACKETS\n"));
-               status = bthci_CmdHostNumberOfCompletedPackets(padapter, pHciCmd);
                break;
        case HCI_READ_LINK_SUPERVISION_TIMEOUT:
                RTPRINT(FIOCTL, IOCTL_BT_HCICMD, ("HCI_READ_LINK_SUPERVISION_TIMEOUT\n"));
@@ -4316,7 +4292,6 @@ bthci_HandleOGFStatusParameters(struct rtw_adapter *padapter,
                break;
        case HCI_READ_RSSI:
                RTPRINT(FIOCTL, IOCTL_BT_HCICMD, ("HCI_READ_RSSI\n"));
-               status = bthci_CmdReadRSSI(padapter);
                break;
        case HCI_READ_LOCAL_AMP_INFO:
                RTPRINT(FIOCTL, IOCTL_BT_HCICMD, ("HCI_READ_LOCAL_AMP_INFO\n"));