Re: [PATCH] drivers:platform/x86:Use ARRAY_SIZE() for the size calculation of the array.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>  #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



[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux