mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-24 23:42:42 +01:00
unit: fix ie test comparison
Most likely here we want to compare the variable not doing an assignment. unit/test-ie.c:227:2: error: suggest parentheses around assignment used as truth value [-Werror=parentheses] assert(expected_len = final_len); ^~~~~~
This commit is contained in:
parent
b6ebce0d90
commit
dc3b17f496
@ -224,7 +224,7 @@ static void ie_test_writer(const void *data)
|
|||||||
ie_tlv_builder_finalize(&builder, &builder_len);
|
ie_tlv_builder_finalize(&builder, &builder_len);
|
||||||
|
|
||||||
assert(final_len == builder_len);
|
assert(final_len == builder_len);
|
||||||
assert(expected_len = final_len);
|
assert(expected_len == final_len);
|
||||||
assert(ie_count == test->num_ie);
|
assert(ie_count == test->num_ie);
|
||||||
|
|
||||||
str = l_util_hexstring(test->buf, final_len);
|
str = l_util_hexstring(test->buf, final_len);
|
||||||
|
Loading…
Reference in New Issue
Block a user