From a579c97823d36613375d636c7b684133d8f79855 Mon Sep 17 00:00:00 2001 From: Mahati Chamarthy Date: Tue, 23 Sep 2014 21:24:47 +0530 Subject: [PATCH] Staging: media: lirc: Merge two lines and remove unused variable This patch merges an assignment with an immediately following return of the assigned variable. It also removes a variable that becomes unused due to this transformation. The following Coccinelle semantic patch was used to make this transformation: @r@ identifier ret; identifier f; @@ -ret = +return f(...); -return ret; @@ identifier r.ret; expression e1; type t; @@ ( -t ret = e1; | -t ret; ) ... when != ret when strict Signed-off-by: Mahati Chamarthy Acked-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed