From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753714AbcHUVPy (ORCPT ); Sun, 21 Aug 2016 17:15:54 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34040 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753643AbcHUVPw (ORCPT ); Sun, 21 Aug 2016 17:15:52 -0400 Date: Sun, 21 Aug 2016 16:57:27 +0200 From: Greg KH To: Nadim almas Cc: abbotti@mev.co.uk, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] Staging: comedi: cd_pcidas64.c: Compression of Message-ID: <20160821145727.GB24541@kroah.com> References: <1470161764-3003-1-git-send-email-nadim.902@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1470161764-3003-1-git-send-email-nadim.902@gmail.com> User-Agent: Mutt/1.7.0 (2016-08-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 02, 2016 at 11:16:04AM -0700, Nadim almas wrote: > This patch compresses two lines in to a single line in file > cb_pcidas64.c > if immediate return statement is found. > > It is done using script Coccinelle. And coccinelle uses following > semantic patch for this compression function: > > @@ > expression e, ret; > @@ > > -ret = > +return > e; > -return ret > > Signed-off-by: Nadim Almas > --- > > drivers/staging/comedi/drivers/cb_pcidas64.c | 4 +--- > 1 files changed, 1 insertions(+), 3 deletions(-) > Subject is still quite odd :(