From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754205AbcEPPxI (ORCPT ); Mon, 16 May 2016 11:53:08 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:28478 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752202AbcEPPxH (ORCPT ); Mon, 16 May 2016 11:53:07 -0400 Date: Mon, 16 May 2016 16:53:50 +0100 From: Eric Engestrom To: Muhammad Falak R Wani CC: David Airlie , Nils =?utf-8?Q?Wallm=C3=A9nius?= , Jammy Zhou , , , Alex Deucher , Rex Zhu , Christian =?utf-8?B?S8O2bmln?= , Dan Carpenter Subject: Re: [PATCH v2] drm/amd/powerplay: use ARRAY_SIZE() to calculate array size. Message-ID: <20160516155350.GQ7910@imgtec.com> References: <1463161029-7490-1-git-send-email-falakreyaz@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <1463161029-7490-1-git-send-email-falakreyaz@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [10.60.4.28] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 13, 2016 at 11:06:40PM +0530, Muhammad Falak R Wani wrote: > It is preferred to use ARRAY_SIZE() for size calculation, instead > using sizeof(array)/sizeof(*array). It makes the code more readable. > > Signed-off-by: Muhammad Falak R Wani Reviewed-by: Eric Engestrom Thanks, and sorry about before, if I made you feel like you made a "childish mistake". As Dan said, this is mostly a question of style: your code was right, it just had an unnecessary bit. I hope I didn't give you a bad impression of the community, most people around here have better manners than I :P Cheers