be2net: remove duplicate code in be_setup_wol()
authorKalesh Purayil <kalesh.purayil@avagotech.com>
Fri, 10 Jul 2015 09:32:43 +0000 (05:32 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jul 2015 06:24:29 +0000 (23:24 -0700)
commit145155e786ccee898f6ed665f6dd3bce7c14830f
tree6fe4f4c01d737e7b7667e782e41941ff5b1c2ba9
parent9131f3de24db4dc12199aede7d931e6703e97f3b
be2net: remove duplicate code in be_setup_wol()

This change will make be_setup_wol() routine more compact and readable
by removing some duplicate code.

Signed-off-by: Kalesh AP <kalesh.purayil@avagotech.com>
Signed-off-by: Sathya Perla <sathya.perla@avagotech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c