Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Minor changes, reported by the LGTM bot.



details:   https://anonhg.NetBSD.org/src/rev/cd3ba2fa2721
branches:  trunk
changeset: 1005382:cd3ba2fa2721
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri Dec 06 07:27:06 2019 +0000

description:
Minor changes, reported by the LGTM bot.

diffstat:

 sys/dev/acpi/acpi_pci_link.c |  8 ++++----
 sys/dev/pci/auich.c          |  6 +++---
 sys/kern/uipc_mbuf.c         |  6 +++---
 3 files changed, 10 insertions(+), 10 deletions(-)

diffs (83 lines):

diff -r 075de67d1063 -r cd3ba2fa2721 sys/dev/acpi/acpi_pci_link.c
--- a/sys/dev/acpi/acpi_pci_link.c      Fri Dec 06 07:12:38 2019 +0000
+++ b/sys/dev/acpi/acpi_pci_link.c      Fri Dec 06 07:27:06 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi_pci_link.c,v 1.23 2019/11/10 21:16:34 chs Exp $   */
+/*     $NetBSD: acpi_pci_link.c,v 1.24 2019/12/06 07:27:06 maxv Exp $  */
 
 /*-
  * Copyright (c) 2002 Mitsuru IWASAKI <iwasaki%jp.freebsd.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_pci_link.c,v 1.23 2019/11/10 21:16:34 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_pci_link.c,v 1.24 2019/12/06 07:27:06 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/malloc.h>
@@ -116,8 +116,8 @@
        int     l_references;
        int     l_dev_count;
        pcitag_t *l_devices;
-       int     l_routed:1;
-       int     l_isa_irq:1;
+       u_int   l_routed:1;
+       u_int   l_isa_irq:1;
        ACPI_RESOURCE l_prs_template;
 };
 
diff -r 075de67d1063 -r cd3ba2fa2721 sys/dev/pci/auich.c
--- a/sys/dev/pci/auich.c       Fri Dec 06 07:12:38 2019 +0000
+++ b/sys/dev/pci/auich.c       Fri Dec 06 07:27:06 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: auich.c,v 1.157 2019/06/08 08:02:38 isaki Exp $        */
+/*     $NetBSD: auich.c,v 1.158 2019/12/06 07:27:07 maxv Exp $ */
 
 /*-
  * Copyright (c) 2000, 2004, 2005, 2008 The NetBSD Foundation, Inc.
@@ -111,7 +111,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auich.c,v 1.157 2019/06/08 08:02:38 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auich.c,v 1.158 2019/12/06 07:27:07 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -215,7 +215,7 @@
        /* 440MX workaround */
        int  sc_dmamap_flags;
        /* flags */
-       int  sc_iose    :1,
+       u_int  sc_iose  :1,
                        :31;
 
        /* sysctl */
diff -r 075de67d1063 -r cd3ba2fa2721 sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c      Fri Dec 06 07:12:38 2019 +0000
+++ b/sys/kern/uipc_mbuf.c      Fri Dec 06 07:27:06 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_mbuf.c,v 1.235 2019/10/19 06:36:47 tnn Exp $      */
+/*     $NetBSD: uipc_mbuf.c,v 1.236 2019/12/06 07:27:07 maxv Exp $     */
 
 /*
  * Copyright (c) 1999, 2001, 2018 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.235 2019/10/19 06:36:47 tnn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.236 2019/12/06 07:27:07 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_mbuftrace.h"
@@ -2205,7 +2205,7 @@
 
                dat = n->m_data;
                len = n->m_len;
-               if (__predict_false(dat + len < dat)) {
+               if (__predict_false(len < 0)) {
                        panic("%s: incorrect length (len = %d)", __func__, len);
                }
 



Home | Main Index | Thread Index | Old Index