From: Thiago Farina Subject: Re: [PATCH] ata: Clean up hard coded array size calculation. Date: Wed, 11 Nov 2009 20:50:29 -0200 Message-ID: References: <1257708657-1232-1-git-send-email-tfransosi@gmail.com> <4AF8F363.3010806@rtr.ca> <200911101651.24912.bzolnier@gmail.com> <84144f020911100808y55f5bfa2v5c203b356583a7b5@mail.gmail.com> <4AFB3C9D.4020609@rtr.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from mail-bw0-f227.google.com ([209.85.218.227]:58903 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759326AbZKKWuZ (ORCPT ); Wed, 11 Nov 2009 17:50:25 -0500 In-Reply-To: <4AFB3C9D.4020609@rtr.ca> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Mark Lord Cc: Pekka Enberg , Bartlomiej Zolnierkiewicz , jgarzik@pobox.com, mlord@pobox.com, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org On Wed, Nov 11, 2009 at 8:37 PM, Mark Lord wrote: > Looks like unnecessary churn and obfuscation to me. Obfuscation? Are you saying that just because you wrote this code? So what is the usage of a macro? I think you are having a defensive position here. The macro is self-explanatory, ARRAY_SIZE, so the macro gives you the *size* of the array. You don't need to know how that is done, if you want, just go to the declaration of the macro.