]> www.infradead.org Git - linux.git/commitdiff
staging: rtl8192e: adjust size of RxMIMOSignalStrength
authorMichael Straube <straube.linux@gmail.com>
Sat, 31 Aug 2024 10:08:09 +0000 (12:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2024 08:31:56 +0000 (10:31 +0200)
The array RxMIMOSignalStrength in struct rtllib_rx_stats is always accessed
with indices in the range i = 0; i < 2. We can reduce the size from 4 to 2.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20240831100809.29173-6-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib.h

index 7a1a68317a4927a701267114e219817927e1d72a..0eb987e999c58fb0ce0c0c4a20f072a034347456 100644 (file)
@@ -480,7 +480,7 @@ struct rtllib_rx_stats {
        bool  bFirstMPDU;
        bool  contain_htc;
        u32   RxPWDBAll;
-       u8    RxMIMOSignalStrength[4];
+       u8    RxMIMOSignalStrength[2];
        s8    RxMIMOSignalQuality[2];
        bool  bPacketMatchBSSID;
        bool  bIsCCK;