From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfOWG-0005XW-EZ for qemu-devel@nongnu.org; Fri, 25 Sep 2015 04:38:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfOWF-0003FL-MD for qemu-devel@nongnu.org; Fri, 25 Sep 2015 04:38:16 -0400 From: Shraddha Barke Date: Fri, 25 Sep 2015 14:07:56 +0530 Message-Id: <1443170278-9318-1-git-send-email-shraddha.6596@gmail.com> Subject: [Qemu-devel] [PATCH 1/3] Target-microblaze: Remove unnecessary variable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvm@vger.kernel.org, qemu-trivial@nongnu.org, Michael Tokarev Cc: Paolo Bonzini , qemu-devel , Shraddha Barke 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