]> asedeno.scripts.mit.edu Git - linux.git/commit
Staging: pi433: Merge assignment with return value
authorMeghana Madhyastha <meghana.madhyastha@gmail.com>
Fri, 15 Sep 2017 07:04:30 +0000 (12:34 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Sep 2017 10:00:07 +0000 (12:00 +0200)
commite2614ef1b2ecb3f9f1e17762b01c2b29dbc344aa
treee7f48f9edfb5d7520053273b6b642adc094695f5
parent0d27c94abbc073234474baf5eecc05da5423961a
Staging: pi433: Merge assignment with return value

Removes the unnecessary assignment of retval preceding
the return statement.

Detected using the following Coccinelle script:
@@
local idexpression ret;
expression e;
@@

-ret =
+return
     e;
-return ret;

Signed-off-by: Meghana Madhyastha <meghana.madhyastha@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/pi433/rf69.c