Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964838AbaFSQs3 (ORCPT ); Thu, 19 Jun 2014 12:48:29 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:14169 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932213AbaFSQs2 (ORCPT ); Thu, 19 Jun 2014 12:48:28 -0400 X-IronPort-AV: E=Sophos;i="5.01,508,1400018400"; d="scan'208";a="80972713" Date: Thu, 19 Jun 2014 18:49:19 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Joe Perches cc: Himangi Saraogi , Julia Lawall , Gilles Muller , Nicolas Palix , Michal Marek , cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org, benoit.taine@lip6.fr Subject: Re: [PATCH] Coccinelle: Script to drop parenthesis in the return statements In-Reply-To: <1403195662.7875.5.camel@joe-AO725> Message-ID: References: <20140619162954.GA4698@himangi-Dell> <1403195662.7875.5.camel@joe-AO725> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) 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 On Thu, 19 Jun 2014, Joe Perches wrote: > On Thu, 2014-06-19 at 21:59 +0530, Himangi Saraogi wrote: > > This script detects the use of a parenthesis around return value ot the > > return statements and removes them as they are unnecessary and against > > the CodingStyle. A new directory called checkpatch is added for semantic > > patches that just make patches for what checkpatch does. This will help > > developers having checkpatch problems, to run the semantic patches in this > > directory on their code and fix some of them automatically. > > checkpatch already has --fix and --fix-inplace options that > do something similar. OK. Then it is not worth adding coccinelle scripts for simple changes like this one. I guess that some of the more complex changes, like choosing an appropriate error message function, checkpatch does not do? julia -- 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/