Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Remove (unused) reference to m_pktdat.



details:   https://anonhg.NetBSD.org/src/rev/3d65a974ca3e
branches:  trunk
changeset: 454625:3d65a974ca3e
user:      maxv <maxv%NetBSD.org@localhost>
date:      Mon Sep 23 07:47:45 2019 +0000

description:
Remove (unused) reference to m_pktdat.

diffstat:

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

diffs (28 lines):

diff -r 49eb3b94c70e -r 3d65a974ca3e sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c      Mon Sep 23 06:53:09 2019 +0000
+++ b/sys/dev/pci/if_bge.c      Mon Sep 23 07:47:45 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bge.c,v 1.337 2019/09/13 07:55:07 msaitoh Exp $     */
+/*     $NetBSD: if_bge.c,v 1.338 2019/09/23 07:47:45 maxv Exp $        */
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.337 2019/09/13 07:55:07 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.338 2019/09/23 07:47:45 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -4963,8 +4963,7 @@
                        if (!M_READONLY(m)) {
                                if (M_LEADINGSPACE(m) < shorfall) {
                                        void *m_dat;
-                                       m_dat = (m->m_flags & M_PKTHDR) ?
-                                           m->m_pktdat : m->dat;
+                                       m_dat = M_BUFADDR(m);
                                        memmove(m_dat, mtod(m, void*),
                                            m->m_len);
                                        m->m_data = m_dat;



Home | Main Index | Thread Index | Old Index