usb: chipidea: udc: compress return logic into line
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Mon, 10 Jul 2017 02:08:20 +0000 (21:08 -0500)
committerPeter Chen <peter.chen@nxp.com>
Wed, 19 Jul 2017 01:49:11 +0000 (09:49 +0800)
commit734c58aefcc48f888e74fd082a0a2eca167e8816
tree35e547c6759ea7dbb6b3f2453875bf52115b06c3
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
usb: chipidea: udc: compress return logic into line

Simplify return logic to avoid unnecessary variable assignment.

This issue was detected using Coccinelle and the following
semantic patch:

@@
local idexpression ret;
expression e;
@@

-ret =
+return
     e;
-return ret;

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/udc.c