Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761242Ab0GTPEd (ORCPT ); Tue, 20 Jul 2010 11:04:33 -0400 Received: from cantor2.suse.de ([195.135.220.15]:40971 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758553Ab0GTPEb (ORCPT ); Tue, 20 Jul 2010 11:04:31 -0400 Date: Tue, 20 Jul 2010 17:04:28 +0200 (CEST) From: Jiri Kosina To: Paul Fulghum Cc: Kulikov Vasiliy , Kernel Janitors , Stephen Hemminger , Andrew Morton , "David S. Miller" , linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/16] trivial: use ARRAY_SIZE In-Reply-To: <4C2A36C6.3020101@microgate.com> Message-ID: References: <1277726089-24467-1-git-send-email-segooon@gmail.com> <4C2A36C6.3020101@microgate.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1201 Lines: 35 On Tue, 29 Jun 2010, Paul Fulghum wrote: > > Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x). > > > > Signed-off-by: Kulikov Vasiliy > > --- > > drivers/char/synclink_gt.c | 2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c > > index 4561ce2..334cf5c 100644 > > --- a/drivers/char/synclink_gt.c > > +++ b/drivers/char/synclink_gt.c > > @@ -4845,7 +4845,7 @@ static int register_test(struct slgt_info *info) > > { > > static unsigned short patterns[] = > > {0x0000, 0xffff, 0xaaaa, 0x5555, 0x6969, 0x9696}; > > - static unsigned int count = sizeof(patterns)/sizeof(patterns[0]); > > + static unsigned int count = ARRAY_SIZE(patterns); > > unsigned int i; > > int rc = 0; > > > > Acked-by: Paul Fulghum The patch is not in linux-next as of today. Applied, thanks guys. -- Jiri Kosina SUSE Labs, Novell Inc. -- 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/