git: a00d9c7f8cd9 - stable/13 - e1000: remove unused ifp backpointer

From: Vincenzo Maffione <vmaffione_at_FreeBSD.org>
Date: Sat, 18 Dec 2021 11:58:34 UTC
The branch stable/13 has been updated by vmaffione:

URL: https://cgit.FreeBSD.org/src/commit/?id=a00d9c7f8cd954d4fcff810b0217dbd48c3c0f1a

commit a00d9c7f8cd954d4fcff810b0217dbd48c3c0f1a
Author:     Vincenzo Maffione <vmaffione@FreeBSD.org>
AuthorDate: 2021-11-29 21:28:26 +0000
Commit:     Vincenzo Maffione <vmaffione@FreeBSD.org>
CommitDate: 2021-12-18 11:46:41 +0000

    e1000: remove unused ifp backpointer
    
    The ifp (struct ifnet) backpointer in the e1000 private ifnet
    data is not used anymore since the iflib transition.
    Remove it so that developers are not tempted to use it and
    get a NULL pointer dereference.
    
    Reviewed by:    markj, kbowling, erj
    MFC after:      2 weeks
    Differential Revision:  https://reviews.freebsd.org/D33157
    
    (cherry picked from commit d91559564dc647846479824340bdf94b7cf98c05)
---
 sys/dev/e1000/if_em.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sys/dev/e1000/if_em.h b/sys/dev/e1000/if_em.h
index 33ba22a88552..ed5a88013f5b 100644
--- a/sys/dev/e1000/if_em.h
+++ b/sys/dev/e1000/if_em.h
@@ -439,7 +439,6 @@ struct em_rx_queue {
 
 /* Our softc structure */
 struct e1000_softc {
-	struct ifnet 		*ifp;
 	struct e1000_hw		hw;
 
 	if_softc_ctx_t		shared;