staging: rtl8192e: Remove unused function HTConstructInfoElement()
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Fri, 24 Nov 2023 21:31:21 +0000 (22:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Nov 2023 10:27:49 +0000 (10:27 +0000)
Remove unused function HTConstructInfoElement().

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/ed49162367b03a848895638adcdfe3594d4219b3.1700860759.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_HTProc.c
drivers/staging/rtl8192e/rtllib.h

index da4cf6f257941d3ccc543ef55454b012e9081651..00273d709f3c4a48897279db22b09430ca992412 100644 (file)
@@ -328,22 +328,6 @@ void HTConstructCapabilityElement(struct rtllib_device *ieee, u8 *posHTCap,
        }
 }
 
-void HTConstructInfoElement(struct rtllib_device *ieee, u8 *posHTInfo,
-                           u8 *len, u8 IsEncrypt)
-{
-       struct ht_info_ele *pHTInfoEle = (struct ht_info_ele *)posHTInfo;
-
-       if (!posHTInfo || !pHTInfoEle) {
-               netdev_warn(ieee->dev,
-                           "%s(): posHTInfo and pHTInfoEle are null\n",
-                           __func__);
-               return;
-       }
-
-       memset(posHTInfo, 0, *len);
-       *len = 0;
-}
-
 void HTConstructRT2RTAggElement(struct rtllib_device *ieee, u8 *posRT2RTAgg,
                                u8 *len)
 {
index b7f4d7e2ea263e94e2b58a34ef81642aa87fd36f..04433c79b3a73a03e27fe44e8d4b90b8aa3590c8 100644 (file)
@@ -1760,8 +1760,6 @@ void ht_update_default_setting(struct rtllib_device *ieee);
 void HTConstructCapabilityElement(struct rtllib_device *ieee,
                                  u8 *posHTCap, u8 *len,
                                  u8 isEncrypt, bool bAssoc);
-void HTConstructInfoElement(struct rtllib_device *ieee,
-                           u8 *posHTInfo, u8 *len, u8 isEncrypt);
 void HTConstructRT2RTAggElement(struct rtllib_device *ieee,
                                u8 *posRT2RTAgg, u8 *len);
 void HTOnAssocRsp(struct rtllib_device *ieee);