Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758764AbYF0Fe3 (ORCPT ); Fri, 27 Jun 2008 01:34:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753265AbYF0Fdl (ORCPT ); Fri, 27 Jun 2008 01:33:41 -0400 Received: from srv5.dvmed.net ([207.36.208.214]:56727 "EHLO mail.dvmed.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752576AbYF0Fdh (ORCPT ); Fri, 27 Jun 2008 01:33:37 -0400 Message-ID: <48647BAA.8060308@pobox.com> Date: Fri, 27 Jun 2008 01:33:30 -0400 From: Jeff Garzik User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Julia Lawall CC: florian.fainelli@telecomint.eu, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] drivers/net/r6040.c: Eliminate double sizeof References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -4.4 (----) X-Spam-Report: SpamAssassin version 3.2.4 on srv5.dvmed.net summary: Content analysis details: (-4.4 points, 5.0 required) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 654 Lines: 29 Julia Lawall wrote: > From: Julia Lawall > > Taking sizeof the result of sizeof is quite strange and does not seem to be > what is wanted here. > > This was fixed using the following semantic patch. > (http://www.emn.fr/x-info/coccinelle/) > > // > @@ > expression E; > @@ > > - sizeof ( > sizeof (E) > - ) > // > > Signed-off-by: Julia Lawall applied -- 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/