[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOMdWSKVi_3tjxZ6=uoakyLthnYX4ng6o4PRMoikN4Y8qr_UDQ@mail.gmail.com>
Date: Wed, 13 Sep 2017 14:09:30 +0530
From: Allen <allen.lkml@...il.com>
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: linux-kernel@...r.kernel.org, devel@...verdev.osuosl.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
mchehab@...nel.org, linux-media@...r.kernel.org
Subject: Re: [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
Powered by blists - more mailing lists