Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030392AbWLOXPj (ORCPT ); Fri, 15 Dec 2006 18:15:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030394AbWLOXPj (ORCPT ); Fri, 15 Dec 2006 18:15:39 -0500 Received: from gans.physik3.uni-rostock.de ([139.30.44.2]:6126 "EHLO gans.physik3.uni-rostock.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030392AbWLOXPi (ORCPT ); Fri, 15 Dec 2006 18:15:38 -0500 X-Greylist: delayed 1257 seconds by postgrey-1.27 at vger.kernel.org; Fri, 15 Dec 2006 18:15:38 EST Date: Fri, 15 Dec 2006 23:54:37 +0100 (CET) From: Tim Schmielau To: "Robert P. J. Day" cc: Jan Engelhardt , Stefan Richter , Zach Brown , Linux kernel mailing list Subject: Re: lots of code could be simplified by using ARRAY_SIZE() In-Reply-To: Message-ID: References: <2F8F687E-C5E5-4F7D-9585-97DA97AE1376@oracle.com> <4581DAB0.2060505@s5r6.in-berlin.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 661 Lines: 19 On Fri, 15 Dec 2006, Robert P. J. Day wrote: > On Fri, 15 Dec 2006, Jan Engelhardt wrote: > > Even sizeof a / sizeof *a > > > > may happen. > > yes, sadly, there are a number of those as well. back to the drawing > board. It might be interesting to grep for anything that divides two sizeofs and eyeball the result for possible mistakes. This would provide some real benefit beyond the cosmetical changes. Tim - 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/