From: Shraddha Barke Subject: [PATCH 1/3] Target-microblaze: Remove unnecessary variable Date: Fri, 25 Sep 2015 14:07:56 +0530 Message-ID: <1443170278-9318-1-git-send-email-shraddha.6596@gmail.com> Cc: Paolo Bonzini , qemu-devel , Shraddha Barke To: kvm@vger.kernel.org, qemu-trivial@nongnu.org, Michael Tokarev Return-path: Received: from mail-pa0-f48.google.com ([209.85.220.48]:36846 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755479AbbIYIiL (ORCPT ); Fri, 25 Sep 2015 04:38:11 -0400 Received: by pablk4 with SMTP id lk4so3170765pab.3 for ; Fri, 25 Sep 2015 01:38:10 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: Compress lines and remove the variable . 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 Signed-off-by: Shraddha Barke --- target-microblaze/op_helper.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/target-microblaze/op_helper.c b/target-microblaze/op_helper.c index d2b3624..d2f411a 100644 --- a/target-microblaze/op_helper.c +++ b/target-microblaze/op_helper.c @@ -151,9 +151,7 @@ uint32_t helper_clz(uint32_t t0) uint32_t helper_carry(uint32_t a, uint32_t b, uint32_t cf) { - uint32_t ncf; - ncf = compute_carry(a, b, cf); - return ncf; + return compute_carry(a, b, cf); } static inline int div_prepare(CPUMBState *env, uint32_t a, uint32_t b) -- 2.1.4