ixgbe: return IXGBE_ERR_RAR_INDEX when out of range
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 2 Jun 2010 12:44:05 +0000 (12:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jun 2010 10:28:28 +0000 (03:28 -0700)
commita1868dc2878e61778b9d6d8c61d5368e51d68a29
treeef829861e7d437ed2d62d74fb01601c8f8bba69e
parentdb2c24175d149b55784f7cb2c303622ce962c1ae
ixgbe: return IXGBE_ERR_RAR_INDEX when out of range

Based on original patch from Shirley Ma <xma@us.ibm.com>
Return IXGBE_ERR_RAR_INDEX when RAR index is out of range, instead of
returning IXGBE_SUCCESS.

CC: Shirley Ma <xma@us.ibm.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Acked-by: Don Skidmore <donald.c.skidmore@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_common.c
drivers/net/ixgbe/ixgbe_type.h