mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 17:59:25 +01:00
unit: Use L_ARRAY_SIZE instead own version of it
This commit is contained in:
parent
0b5dceab27
commit
16824cad05
@ -63,7 +63,7 @@ const struct ssid_test_data ssid_samples[] = {
|
|||||||
static void ssid_to_utf8(const void *data)
|
static void ssid_to_utf8(const void *data)
|
||||||
{
|
{
|
||||||
const struct ssid_test_data *ssid = data;
|
const struct ssid_test_data *ssid = data;
|
||||||
int i = 0, samples = sizeof(ssid_samples) / sizeof(ssid_samples[0]);
|
int i = 0, samples = L_ARRAY_SIZE(ssid_samples);
|
||||||
|
|
||||||
while (i < samples) {
|
while (i < samples) {
|
||||||
const char *result = util_ssid_to_utf8(ssid[i].len,
|
const char *result = util_ssid_to_utf8(ssid[i].len,
|
||||||
|
Loading…
Reference in New Issue
Block a user