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:
parent
74ec6530cb
commit
f51025e143
@ -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_domain(const char *identity);
|
||||||
const char *util_get_username(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)
|
static inline bool util_is_bit_set(const uint8_t oct, int bit)
|
||||||
{
|
{
|
||||||
int mask = 1 << bit;
|
int mask = 1 << bit;
|
||||||
|
Loading…
Reference in New Issue
Block a user