lkml.org 
[lkml]   [2017]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] drivers:staging/media:Use ARRAY_SIZE() for the size calculation of the array
>>
>> -#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

\
 
 \ /
  Last update: 2017-09-13 10:40    [W:0.042 / U:4.812 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site