Staging: netlogic: Compress return logic into one line
authorMihaela Muraru <mihaela.muraru21@gmail.com>
Thu, 13 Oct 2016 16:45:59 +0000 (19:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:27:33 +0000 (10:27 +0200)
commit1cbe7adb9c6d10830494e81f2867858da2fd4c53
treea480d8f232d70695791ffb19d97fd53007fe7261
parent42178baf4af085be43aea426ff926914fc202d5b
Staging: netlogic: Compress return logic into one line

Simplify function returns by merging assignment and return into
one command line.
Found with Coccinelle
@@
expression e, ret;
@@

-ret =
+return
        e;
-return ret;

Signed-off-by: Mihaela Muraru <mihaela.muraru21@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/netlogic/xlr_net.c