[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAOMdWSKzUdcbCZvnENSrvjo=BbVz6O69_C8m4QRNq5cnOAJ9Zw@mail.gmail.com>
Date: Wed, 13 Sep 2017 14:21:12 +0530
From: Allen <allen.lkml@...il.com>
To: "Chakravarty, Souvik K" <souvik.k.chakravarty@...el.com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"platform-driver-x86@...r.kernel.org"
<platform-driver-x86@...r.kernel.org>
Subject: Re: [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
Powered by blists - more mailing lists