From 780d388b8551164040e67bbe4eb39012923fea4e Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sat, 8 Aug 2009 09:30:02 +0000 Subject: 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. --- sys/dev/pci/ixgbe.c | 6 +++--- 1 file 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; -- cgit v1.2.3