Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751315AbbG0EbA (ORCPT ); Mon, 27 Jul 2015 00:31:00 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:33796 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750728AbbG0Ea6 (ORCPT ); Mon, 27 Jul 2015 00:30:58 -0400 Date: Mon, 27 Jul 2015 10:00:52 +0530 From: Sudip Mukherjee To: Shraddha Barke Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] Staging:dgap :Compression of lines for immediate return Message-ID: <20150727043052.GB3985@sudip-pc> References: <20150726173413.GA30485@shraddha-370R4E-370R4V-370R5E-3570RE-370R5V> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150726173413.GA30485@shraddha-370R4E-370R4V-370R5E-3570RE-370R5V> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 745 Lines: 25 On Sun, Jul 26, 2015 at 11:04:13PM +0530, Shraddha Barke wrote: > This patch compresses two lines into a single line if immediate return statement > is found. Also,remove variable rc as it is no longer needed. > It is done using tool Coccinelle. And semantic patch used for this is as follows: > > @@ > expression ret; > identifier f; > @@ > > -ret = > +return > f(...); > -return ret; > --- Missed the Signed-off-by: here also, and always add the maintainers in your To: list. regards sudip -- 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/