]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
Staging: wilc1000: Compress return logic into one line
authorMihaela Muraru <mihaela.muraru21@gmail.com>
Thu, 13 Oct 2016 21:00:51 +0000 (00:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:27:34 +0000 (10:27 +0200)
commit3b438f2ca9bbf43718b6155bdd9d4841eebb63ab
tree581c4cec0497947d9925eb5eb0b97185c4ffdb1e
parent1cbe7adb9c6d10830494e81f2867858da2fd4c53
Staging: wilc1000: Compress return logic into one line

Simplify function returns by merging assignment and return into
one command line.

Delete unnecesarry return variable.

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/wilc1000/coreconfigurator.c
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c