staging: r8188eu: remove unused bitshift function
authorMartin Kaiser <martin@kaiser.cx>
Sat, 15 Jan 2022 16:55:28 +0000 (17:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jan 2022 15:27:23 +0000 (16:27 +0100)
The bitshift function from osdep_service.h is not used.
Remove it.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220115165536.231210-4-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/include/osdep_service.h

index 2f6b8ac..6d03e13 100644 (file)
@@ -163,15 +163,6 @@ static inline u32 _RND512(u32 sz)
        return val;
 }
 
-static inline u32 bitshift(u32 bitmask)
-{
-       u32 i;
-
-       for (i = 0; i <= 31; i++)
-               if (((bitmask>>i) &  0x1) == 1) break;
-       return i;
-}
-
 /*  limitation of path length */
 #define PATH_LENGTH_MAX PATH_MAX