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

wscutil: Simplify uuid extractor

This commit is contained in:
Denis Kenzior 2016-08-11 16:15:14 -05:00
parent da7477435e
commit 29a0d9f066

View File

@ -401,13 +401,10 @@ static bool extract_wsc_state(struct wsc_attr_iter *iter, void *data)
static bool extract_uuid(struct wsc_attr_iter *iter, void *data)
{
uint8_t *out = data;
if (wsc_attr_iter_get_length(iter) != 16)
return false;
memcpy(out, wsc_attr_iter_get_data(iter), 16);
memcpy(data, wsc_attr_iter_get_data(iter), 16);
return true;
}