staging: rtl8723bs: hal: Remove function PHY_CalculateBitShift()
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Fri, 28 Jun 2019 10:58:29 +0000 (16:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jul 2019 08:49:43 +0000 (10:49 +0200)
Remove unused function PHY_CalculateBitShift.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/hal_phy.c

index 56ac9aa8a98ca477366f7b9ffc77ec1a13cea18b..24a9d8f783f019056a31cc7412c691976eb13b91 100644 (file)
@@ -8,30 +8,6 @@
 
 #include <drv_types.h>
 
-/**
-* Function:    PHY_CalculateBitShift
-*
-* OverView:    Get shifted position of the BitMask
-*
-* Input:
-*              u32     BitMask,
-*
-* Output:      none
-* Return:              u32     Return the shift bit bit position of the mask
-*/
-u32 PHY_CalculateBitShift(u32 BitMask)
-{
-       u32 i;
-
-       for (i = 0; i <= 31; i++) {
-               if (((BitMask>>i) &  0x1) == 1)
-                       break;
-       }
-
-       return i;
-}
-
-
 /*  */
 /*  ==> RF shadow Operation API Code Section!!! */
 /*  */