Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932274Ab2JJSWL (ORCPT ); Wed, 10 Oct 2012 14:22:11 -0400 Received: from perches-mx.perches.com ([206.117.179.246]:49141 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756867Ab2JJSWJ (ORCPT ); Wed, 10 Oct 2012 14:22:09 -0400 Message-ID: <1349893320.2035.4.camel@joe-AO722> Subject: Re: [PATCH V3] ath/ath9k/ar9003_eeprom.c: Remove semicolon after if From: Joe Perches To: Peter Senna Tschudin Cc: mcgrof@qca.qualcomm.com, jouni@qca.qualcomm.com, vthiagar@qca.qualcomm.com, senthilb@qca.qualcomm.com, linville@tuxdriver.com, linux-wireless@vger.kernel.org, ath9k-devel@venema.h4ckr.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Date: Wed, 10 Oct 2012 11:22:00 -0700 In-Reply-To: <1349887097-24980-1-git-send-email-peter.senna@gmail.com> References: <1349038599-22026-1-git-send-email-peter.senna@gmail.com> <1349887097-24980-1-git-send-email-peter.senna@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.6.0-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 802 Lines: 25 On Wed, 2012-10-10 at 18:38 +0200, Peter Senna Tschudin wrote: > This patch remove a semicolon after if(...) that is preventing the > error check to work correctly. Removing this semicolon will change the > code behavior, but this is intended. > > The semantic patch that finds this problem is as follows: > (http://coccinelle.lip6.fr/) > > // > @r1@ > position p; > @@ > if (...);@p this semantic patch would be a lot less tedious to inspect the results if it excluded else after the semicolon. I've used perl for more or less the same output. -- 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/