Re: [PATCH] drivers:staging/media:Use ARRAY_SIZE() for the size calculation of the array

From: Allen
Date: Wed Sep 13 2017 - 04:39:48 EST


>>
>> -#define array_length(array) (sizeof(array)/sizeof(array[0]))
>> +#define array_length(array) (ARRAY_SIZE(array))
>
> Just get rid of this array_length macro and use ARRAY_SIZE() directly.
>

Sure.

- Allen