Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci/n8/common PR/50874: David Binderman: unsigned ca...
details: https://anonhg.NetBSD.org/src/rev/9b8d68398cab
branches: trunk
changeset: 814019:9b8d68398cab
user: christos <christos%NetBSD.org@localhost>
date: Mon Feb 29 18:18:04 2016 +0000
description:
PR/50874: David Binderman: unsigned can't be negative
diffstat:
sys/dev/pci/n8/common/n8_SKSManager.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r c63389a42156 -r 9b8d68398cab sys/dev/pci/n8/common/n8_SKSManager.c
--- a/sys/dev/pci/n8/common/n8_SKSManager.c Mon Feb 29 17:46:54 2016 +0000
+++ b/sys/dev/pci/n8/common/n8_SKSManager.c Mon Feb 29 18:18:04 2016 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index