summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8723bs
diff options
context:
space:
mode:
authorNishka Dasgupta2019-06-28 12:58:29 +0200
committerGreg Kroah-Hartman2019-07-01 10:49:43 +0200
commit3a1555da57f2aef9f5d9a673833ad79cc8763832 (patch)
tree11714eb1c31bc6c64677911c8cf44e5c543d01ef /drivers/staging/rtl8723bs
parentstaging: rtl8723bs: hal: Remove PHY_RFShadowRecorverFlagSetAll() (diff)
downloadkernel-qcow2-linux-3a1555da57f2aef9f5d9a673833ad79cc8763832.tar.gz
kernel-qcow2-linux-3a1555da57f2aef9f5d9a673833ad79cc8763832.tar.xz
kernel-qcow2-linux-3a1555da57f2aef9f5d9a673833ad79cc8763832.zip
staging: rtl8723bs: hal: Remove function PHY_CalculateBitShift()
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>
Diffstat (limited to 'drivers/staging/rtl8723bs')
-rw-r--r--drivers/staging/rtl8723bs/hal/hal_phy.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/staging/rtl8723bs/hal/hal_phy.c b/drivers/staging/rtl8723bs/hal/hal_phy.c
index 56ac9aa8a98c..24a9d8f783f0 100644
--- a/drivers/staging/rtl8723bs/hal/hal_phy.c
+++ b/drivers/staging/rtl8723bs/hal/hal_phy.c
@@ -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!!! */
/* */