Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/pci Don't mix sign and unsigned operands. Just ...
details: https://anonhg.NetBSD.org/src/rev/70384b746917
branches: trunk
changeset: 971288:70384b746917
user: joerg <joerg%NetBSD.org@localhost>
date: Mon Apr 20 13:02:57 2020 +0000
description:
Don't mix sign and unsigned operands. Just use size_t for the loop.
diffstat:
sys/arch/x86/pci/amdsmn.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0fa3317c2e66 -r 70384b746917 sys/arch/x86/pci/amdsmn.c
--- a/sys/arch/x86/pci/amdsmn.c Mon Apr 20 12:08:08 2020 +0000
+++ b/sys/arch/x86/pci/amdsmn.c Mon Apr 20 13:02:57 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: amdsmn.c,v 1.7 2020/04/20 11:03:02 simonb Exp $ */
+/* $NetBSD: amdsmn.c,v 1.8 2020/04/20 13:02:57 joerg Exp $ */
/*-
* Copyright (c) 2017, 2019 Conrad Meyer <cem%FreeBSD.org@localhost>
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdsmn.c,v 1.7 2020/04/20 11:03:02 simonb Exp $ ");
+__KERNEL_RCSID(0, "$NetBSD: amdsmn.c,v 1.8 2020/04/20 13:02:57 joerg Exp $ ");
/*
* Driver for the AMD Family 15h (model 60+) and 17h CPU
@@ -134,7 +134,7 @@
struct amdsmn_softc *sc = device_private(self);
struct pci_attach_args *pa = aux;
int flags = 0;
- int i;
+ size_t i;
mutex_init(&sc->smn_lock, MUTEX_DEFAULT, IPL_NONE);
sc->pa = *pa;
Home |
Main Index |
Thread Index |
Old Index