From: Markus Armbruster Subject: Re: [PATCH 1/3] Target-microblaze: Remove unnecessary variable Date: Mon, 05 Oct 2015 07:18:10 +0200 Message-ID: <87d1wtao6l.fsf@blackfin.pond.sub.org> References: <1443170278-9318-1-git-send-email-shraddha.6596@gmail.com> <56100743.4010604@msgid.tls.msk.ru> Mime-Version: 1.0 Content-Type: text/plain Cc: qemu-trivial@nongnu.org, Paolo Bonzini , Shraddha Barke , kvm@vger.kernel.org, qemu-devel To: Michael Tokarev Return-path: In-Reply-To: <56100743.4010604@msgid.tls.msk.ru> (Michael Tokarev's message of "Sat, 03 Oct 2015 19:50:11 +0300") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org List-Id: kvm.vger.kernel.org Michael Tokarev writes: > 25.09.2015 11:37, Shraddha Barke wrote: >> Compress lines and remove the variable . > > Applied to -trivial, removing this piece of commit message: > > --- >> Change made using Coccinelle script >> >> @@ >> expression ret; >> @@ >> - if (ret) return ret; >> - return 0; >> + return ret; >> @@ >> local idexpression ret; >> expression e; >> @@ >> - ret = e; >> - return ret; >> + return e; >> @@ >> type T; identifier i; >> @@ >> - T i; >> ... when != i > --- Why? I like having the semantic patch in the commit message when there's any chance we'll want do the same mechanical change again later. You could save space and include it by reference, though: "Same Coccinelle semantic patch as is commit 74c373e".