mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-19 02:39:29 +01:00
util: Remove unused msg_append_attr functions
This commit is contained in:
parent
367f1ec798
commit
4978c31fd7
13
src/util.c
13
src/util.c
@ -131,16 +131,3 @@ bool util_string_to_address(const char *str, uint8_t *addr)
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool _msg_append_attr(struct l_genl_msg *msg,
|
||||
uint16_t type, const char *type_str,
|
||||
uint16_t len, const void *value)
|
||||
{
|
||||
bool ret;
|
||||
|
||||
ret = l_genl_msg_append_attr(msg, type, len, value);
|
||||
if (!ret)
|
||||
l_warn("Cannot append attr %s", type_str);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -43,10 +43,4 @@ static inline bool util_is_bit_set(const uint8_t oct, int bit)
|
||||
return oct & mask ? true : false;
|
||||
}
|
||||
|
||||
bool _msg_append_attr(struct l_genl_msg *msg,
|
||||
uint16_t type, const char *type_str,
|
||||
uint16_t len, const void *value);
|
||||
|
||||
#define msg_append_attr(msg, type, len, value) \
|
||||
_msg_append_attr(msg, type, #type, len, value)
|
||||
#endif /* __UTIL_H */
|
||||
|
Loading…
Reference in New Issue
Block a user