]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drivers: net: xgene: optimizing the code
authorSaurabh Sengar <saurabh.truth@gmail.com>
Mon, 23 Nov 2015 13:32:15 +0000 (19:02 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Nov 2015 19:34:41 +0000 (14:34 -0500)
commit724fe6955c88db8b249681cd78a76c10163bb0ba
treeba16676fda80443f6265ed8c5887f3a54781d0f2
parent8e017e00bc480753d1f9fb2a1d708f49c6937ec0
drivers: net: xgene: optimizing the code

this patch does the following:
1 .  remove unnecessary if, else condition
2 .  reduce one variable
3 .  change the return type of 2 functions to void as there return values
turn out to be 0 always after above changes

Signed-off-by: Saurabh Sengar <saurabh.truth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene/xgene_enet_main.c