staging: r8188eu: Efuse_CalculateWordCnts is not used
authorMartin Kaiser <martin@kaiser.cx>
Thu, 25 Nov 2021 15:14:31 +0000 (16:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 16:46:43 +0000 (17:46 +0100)
Remove the Efuse_CalculateWordCnts function, which is not used.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20211125151436.5895-2-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_efuse.c
drivers/staging/r8188eu/include/rtw_efuse.h

index f88d086329b1d9e61883193d2e8f0f307cb1802a..62d194587fb1ae177951222266ebbcfe102ce5ad 100644 (file)
 #define REG_EFUSE_CTRL         0x0030
 #define EFUSE_CTRL                     REG_EFUSE_CTRL          /*  E-Fuse Control. */
 
-/*  11/16/2008 MH Add description. Get current efuse area enabled word!!. */
-u8
-Efuse_CalculateWordCnts(u8 word_en)
-{
-       u8 word_cnts = 0;
-       if (!(word_en & BIT(0)))
-               word_cnts++; /*  0 : write enable */
-       if (!(word_en & BIT(1)))
-               word_cnts++;
-       if (!(word_en & BIT(2)))
-               word_cnts++;
-       if (!(word_en & BIT(3)))
-               word_cnts++;
-       return word_cnts;
-}
-
 /*  */
 /*     Description: */
 /*             Execute E-Fuse read byte operation. */
index 4d8eff8e860e664e6b2b46ddc444262d04c11384..68394c6302a31b51025ba822549b834c9d187979 100644 (file)
@@ -28,7 +28,6 @@
 
 /*------------------------Export global variable----------------------------*/
 
-u8 Efuse_CalculateWordCnts(u8 word_en);
 void ReadEFuseByte(struct adapter *adapter, u16 _offset, u8 *pbuf);
 
 void efuse_WordEnableDataRead(u8 word_en, u8 *sourdata, u8 *targetdata);