]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Fix ixgbe_write_mbx error result
authorMark Rustad <mark.d.rustad@intel.com>
Tue, 22 Jul 2014 06:50:52 +0000 (06:50 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 26 Jul 2014 02:26:44 +0000 (19:26 -0700)
commitd53a2b7e481ca7f394fa08b3145e205dc60f100b
treef50ba1f3e24bec7262ee70668fb10c2e808eb1c4
parentd5ab38b5346ab5f27a5f859fe821fe45d44bd373
ixgbe: Fix ixgbe_write_mbx error result

If ixgbe_write_mbx is called and no mbx->ops.write method
exists, no error code is returned. The corresponding read
function explicitly returns an error in such a case as do
other functions, so this appears to be a minor bug. Fix
it for consistency, and generate return values directly
to make things clearer.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c