From 3a1555da57f2aef9f5d9a673833ad79cc8763832 Mon Sep 17 00:00:00 2001 From: Nishka Dasgupta Date: Fri, 28 Jun 2019 16:28:29 +0530 Subject: [PATCH] staging: rtl8723bs: hal: Remove function PHY_CalculateBitShift() Remove unused function PHY_CalculateBitShift. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtl8723bs/hal/hal_phy.c | 24 ------------------------ 1 file changed, 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 -/** -* 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!!! */ /* */ -- 2.45.2