]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: refactor code in efx_ef10_set_mac_address()
authorDaniel Pieczko <dpieczko@solarflare.com>
Tue, 7 Jul 2015 10:37:00 +0000 (11:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2015 23:07:33 +0000 (16:07 -0700)
commit3d9f79547db0be2cd9cf6572c233d235cfc68b6c
tree56f4a76f76ae951e6f0edd5d68c8b0d26a1ad655
parentf1eded6f2331bf51ba37d48db1c8cd1bdd206915
sfc: refactor code in efx_ef10_set_mac_address()

Re-organize the structure of error handling to avoid having
to duplicate the netif_err() around the ifdefs.

The only change to the behaviour of the error-handling is that
the PF's data structure to record VF details should only be
updated if the original command succeeded.

Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c