lkml.org 
[lkml]   [2017]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] drivers:platform/x86:Use ARRAY_SIZE() for the size calculation of the array.
>>  #define TELEM_IOSS_PG_EVTS           30
>>
>> -#define TELEM_EVT_LEN(x) (sizeof(x)/sizeof((x)[0]))
>> +#define TELEM_EVT_LEN(x) (ARRAY_SIZE(x))
> The outer parenthesis seems redundant to me.
>

Will send out a v2. Thanks.

- Allen

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