staging: rtl8192e: Remove unused variables ucReserved and friends
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Mon, 23 Oct 2023 06:39:47 +0000 (08:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Oct 2023 10:56:38 +0000 (12:56 +0200)
Remove unused variables ucReserved, ucSchedule, ucTSInfoAckPolicy, ucPSB,
ucAggregation, ucAccessPolicy, ucTrafficType and charData.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/4edfbe350e05649d1f6028777dcadb15af25238c.1698042685.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_Qos.h
drivers/staging/rtl8192e/rtl819x_TSProc.c

index a43a5142e96fc3080ec362d6a1774c9f17f7c3f4..5cdecec496e072c0bcdef87887eae417d9926f7e 100644 (file)
@@ -8,18 +8,10 @@
 #define __INC_QOS_TYPE_H
 
 union qos_tsinfo {
-       u8              charData[3];
        struct {
-               u8              ucTrafficType:1;
                u8              ucTSID:4;
                u8              ucDirection:2;
-               u8              ucAccessPolicy:2;
-               u8              ucAggregation:1;
-               u8              ucPSB:1;
                u8              ucUP:3;
-               u8              ucTSInfoAckPolicy:2;
-               u8              ucSchedule:1;
-               u8              ucReserved:7;
        } field;
 };
 
index 95e735c078e4310a3994c2667df017acdb573f01..af4d31a66853b72260d57a8ebbd49c8744f7a19f 100644 (file)
@@ -318,15 +318,9 @@ bool rtllib_get_ts(struct rtllib_device *ieee, struct ts_common_info **ppTS,
                netdev_dbg(ieee->dev,
                           "to init current TS, UP:%d, Dir:%d, addr: %pM ppTs=%p\n",
                           UP, Dir, addr, *ppTS);
-               ts_info->field.ucTrafficType = 0;
                ts_info->field.ucTSID = UP;
                ts_info->field.ucDirection = Dir;
-               ts_info->field.ucAccessPolicy = 1;
-               ts_info->field.ucAggregation = 0;
-               ts_info->field.ucPSB = 0;
                ts_info->field.ucUP = UP;
-               ts_info->field.ucTSInfoAckPolicy = 0;
-               ts_info->field.ucSchedule = 0;
 
                MakeTSEntry(*ppTS, addr, &TSpec, NULL, 0, 0);
                list_add_tail(&((*ppTS)->List), pAddmitList);