From a2f023e884402f1fa66e4584de98f10f9b96cf20 Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 29 Feb 2016 18:18:04 +0000 Subject: [PATCH] PR/50874: David Binderman: unsigned can't be negative --- sys/dev/pci/n8/common/n8_SKSManager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/n8/common/n8_SKSManager.c b/sys/dev/pci/n8/common/n8_SKSManager.c index 49df74b9fe9f..76ca06be8756 100644 --- a/sys/dev/pci/n8/common/n8_SKSManager.c +++ b/sys/dev/pci/n8/common/n8_SKSManager.c @@ -32,7 +32,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -static char const n8_id[] = "$Id: n8_SKSManager.c,v 1.1 2008/10/30 12:02:14 darran Exp $"; +static char const n8_id[] = "$Id: n8_SKSManager.c,v 1.2 2016/02/29 18:18:04 christos Exp $"; /*****************************************************************************/ /** @file n8_SKSManager.c * @brief NSP2000 SKS Manager @@ -136,7 +136,7 @@ N8_Status_t n8_SKSWrite(const unsigned int targetSKS, NspInstance_t *NSPinstance_p; volatile NSP2000REGS_t *nsp; - if ((targetSKS < 0) || (targetSKS >= NSPcount_g)) + if (targetSKS >= NSPcount_g) { DBG(("Failed to get control structure: %d\n", ret)); return N8_UNEXPECTED_ERROR;