Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci *** empty log message ***



details:   https://anonhg.NetBSD.org/src/rev/2b434941c1a1
branches:  trunk
changeset: 368292:2b434941c1a1
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Jul 03 13:29:28 2022 +0000

description:
*** empty log message ***

diffstat:

 sys/dev/pci/if_bge.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r e3912c166294 -r 2b434941c1a1 sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c      Sun Jul 03 13:25:18 2022 +0000
+++ b/sys/dev/pci/if_bge.c      Sun Jul 03 13:29:28 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bge.c,v 1.364 2022/07/03 13:25:18 skrll Exp $       */
+/*     $NetBSD: if_bge.c,v 1.365 2022/07/03 13:29:28 skrll Exp $       */
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.364 2022/07/03 13:25:18 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.365 2022/07/03 13:29:28 skrll Exp $");
 
 #include <sys/param.h>
 
@@ -1365,8 +1365,7 @@
        for (i = 0; i < BGE_JSLOTS; i++) {
                sc->bge_cdata.bge_jslots[i] = ptr;
                ptr += BGE_JLEN;
-               entry = malloc(sizeof(struct bge_jpool_entry),
-                   M_DEVBUF, M_WAITOK);
+               entry = malloc(sizeof(*entry), M_DEVBUF, M_WAITOK);
                entry->slot = i;
                SLIST_INSERT_HEAD(&sc->bge_jfree_listhead,
                                 entry, jpool_entries);



Home | Main Index | Thread Index | Old Index