3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-23 06:02:37 +01:00

util: Remove unused util_bit_field

This commit is contained in:
Denis Kenzior 2021-03-11 22:35:13 -06:00
parent 74ec6530cb
commit f51025e143

View File

@ -43,12 +43,6 @@ bool util_is_valid_sta_address(const uint8_t *addr);
const char *util_get_domain(const char *identity);
const char *util_get_username(const char *identity);
static inline uint8_t util_bit_field(const uint8_t oct, int start, int num)
{
unsigned char mask = (1 << num) - 1;
return (oct >> start) & mask;
}
static inline bool util_is_bit_set(const uint8_t oct, int bit)
{
int mask = 1 << bit;