Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752087AbbF3TB2 (ORCPT ); Tue, 30 Jun 2015 15:01:28 -0400 Received: from mail-vn0-f44.google.com ([209.85.216.44]:35068 "EHLO mail-vn0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751042AbbF3TBS (ORCPT ); Tue, 30 Jun 2015 15:01:18 -0400 MIME-Version: 1.0 In-Reply-To: <9B4A1B1917080E46B64F07F2989DADD653571921@ORSMSX114.amr.corp.intel.com> References: <1435640130-1466-1-git-send-email-maninder1.s@samsung.com> <9B4A1B1917080E46B64F07F2989DADD653571921@ORSMSX114.amr.corp.intel.com> Date: Tue, 30 Jun 2015 21:01:17 +0200 Message-ID: Subject: Re: [Intel-wired-lan] [PATCH 1/1] igb: Use ARRAY_SIZE instead fo sizeof(a)/sizeof(a[0]) From: Richard Weinberger To: "Fujinaka, Todd" Cc: Maninder Singh , "Kirsher, Jeffrey T" , "Brandeburg, Jesse" , "Nelson, Shannon" , "Wyborny, Carolyn" , "Skidmore, Donald C" , "Vick, Matthew" , "Ronciak, John" , "Williams, Mitch A" , "intel-wired-lan@lists.osuosl.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "pankaj.m@samsung.com" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 561 Lines: 15 On Tue, Jun 30, 2015 at 4:53 PM, Fujinaka, Todd wrote: > I don't see the reason this is needed so I'm going to say NAK. Using generic functions is always better than open coded stuff. Linux's ARRAY_SIZE also makes sure that the passed variable is actually an array. -- Thanks, //richard -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/