diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-08-08 09:30:02 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-08-08 09:30:02 +0000 |
commit | 780d388b8551164040e67bbe4eb39012923fea4e (patch) | |
tree | b331b4d2bc84d92761083cb0231fb549900b2ab9 /sys/dev | |
parent | c67a388221ed2aeefd37de90204278353fc9c0da (diff) |
In ixgbe_acquire_swfw_sync don't return -IXGBE_ERR_SWFW_SYNC as this
works out to --16, which is nonsense.
No functional change as all callers only check if the return value
is or isn't equal to IXGBE_SUCCESS.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/ixgbe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/ixgbe.c b/sys/dev/pci/ixgbe.c index 3cb90154ca2..83c775ad855 100644 --- a/sys/dev/pci/ixgbe.c +++ b/sys/dev/pci/ixgbe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ixgbe.c,v 1.3 2008/06/08 21:15:34 reyk Exp $ */ +/* $OpenBSD: ixgbe.c,v 1.4 2009/08/08 09:30:01 jsg Exp $ */ /****************************************************************************** @@ -1759,7 +1759,7 @@ int32_t ixgbe_acquire_swfw_sync(struct ixgbe_hw *hw, uint16_t mask) while (timeout) { if (ixgbe_get_eeprom_semaphore(hw)) - return -IXGBE_ERR_SWFW_SYNC; + return IXGBE_ERR_SWFW_SYNC; gssr = IXGBE_READ_REG(hw, IXGBE_GSSR); if (!(gssr & (fwmask | swmask))) @@ -1776,7 +1776,7 @@ int32_t ixgbe_acquire_swfw_sync(struct ixgbe_hw *hw, uint16_t mask) if (!timeout) { DEBUGOUT("Driver can't access resource, GSSR timeout.\n"); - return -IXGBE_ERR_SWFW_SYNC; + return IXGBE_ERR_SWFW_SYNC; } gssr |= swmask; |