From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.atheros.com ([12.36.123.2]:49128 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758877Ab0HEUr7 (ORCPT ); Thu, 5 Aug 2010 16:47:59 -0400 Received: from mail.atheros.com ([10.10.20.108]) by sidewinder.atheros.com for ; Thu, 05 Aug 2010 13:47:59 -0700 Date: Thu, 5 Aug 2010 13:47:56 -0700 From: "Luis R. Rodriguez" To: Julia Lawall CC: Luis Rodriguez , Jouni Malinen , Sujith Manoharan , Vasanth Thiagarajan , Senthilkumar Balasubramanian , "John W. Linville" , "linux-wireless@vger.kernel.org" , "ath9k-devel@lists.ath9k.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "kernel-janitors@vger.kernel.org" Subject: Re: [PATCH 33/42] drivers/net/wireless/ath/ath9k: Adjust confusing if indentation Message-ID: <20100805204756.GA1738@tux> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" In-Reply-To: Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, Aug 05, 2010 at 01:26:56PM -0700, Julia Lawall wrote: > From: Julia Lawall > > Outdent the code following the if. > > The semantic match that finds this problem is as follows: > (http://coccinelle.lip6.fr/) > > // > @r disable braces4@ > position p1,p2; > statement S1,S2; > @@ > > ( > if (...) { ... } > | > if (...) S1@p1 S2@p2 > ) > > @script:python@ > p1 << r.p1; > p2 << r.p2; > @@ > > if (p1[0].column == p2[0].column): > cocci.print_main("branch",p1) > cocci.print_secs("after",p2) > // > > Signed-off-by: Julia Lawall Acked-by: Luis R. Rodriguez > --- > This patch doesn't change the semantics of the code. But it might not be > what is intended. Your patch is correct, it wast a tab goof, thanks for fixing this. Luis