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

unit: Use L_ARRAY_SIZE instead own version of it

This commit is contained in:
Marcel Holtmann 2018-11-09 14:49:33 +01:00
parent 0b5dceab27
commit 16824cad05

View File

@ -63,7 +63,7 @@ const struct ssid_test_data ssid_samples[] = {
static void ssid_to_utf8(const void *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) {
const char *result = util_ssid_to_utf8(ssid[i].len,