]> 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)
commitc8e4948e7109440e2333c6b0288a5d12983ffb7e
tree56f4a76f76ae951e6f0edd5d68c8b0d26a1ad655
parent15c2bd2e9479f48db2c95bc803790c4c43092b1d
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