Module Name:    src
Committed By:   christos
Date:           Mon Feb 29 18:18:04 UTC 2016

Modified Files:
        src/sys/dev/pci/n8/common: n8_SKSManager.c

Log Message:
PR/50874: David Binderman: unsigned can't be negative


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/pci/n8/common/n8_SKSManager.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/n8/common/n8_SKSManager.c
diff -u src/sys/dev/pci/n8/common/n8_SKSManager.c:1.1 src/sys/dev/pci/n8/common/n8_SKSManager.c:1.2
--- src/sys/dev/pci/n8/common/n8_SKSManager.c:1.1	Thu Oct 30 08:02:14 2008
+++ src/sys/dev/pci/n8/common/n8_SKSManager.c	Mon Feb 29 13:18:04 2016
@@ -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 i
    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;

Reply via email to