git: 7389c8b3edbc - stable/12 - in_rss: fix set but not used warning

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Sat, 14 May 2022 21:05:05 UTC
The branch stable/12 has been updated by kp:

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

commit 7389c8b3edbc6155e9a1ff3d0287b379f446da6b
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2022-05-07 14:01:13 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2022-05-14 09:10:21 +0000

    in_rss: fix set but not used warning
    
    If 'options RSS' is set.
    
    MFC after:      1 week
    Sponsored by:   Orange Business Services
    
    (cherry picked from commit 017e7d0390870061372f8f708dcbff612983f97a)
---
 sys/netinet/in_rss.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/netinet/in_rss.c b/sys/netinet/in_rss.c
index f3184175a7cf..d342811bc96d 100644
--- a/sys/netinet/in_rss.c
+++ b/sys/netinet/in_rss.c
@@ -173,7 +173,6 @@ rss_mbuf_software_hash_v4(const struct mbuf *m, int dir, uint32_t *hashval,
 	const struct ip *ip;
 	const struct tcphdr *th;
 	const struct udphdr *uh;
-	uint32_t flowid;
 	uint32_t flowtype;
 	uint8_t proto;
 	int iphlen;
@@ -224,7 +223,6 @@ rss_mbuf_software_hash_v4(const struct mbuf *m, int dir, uint32_t *hashval,
 	 * then we shouldn't just "trust" the 2-tuple hash.  We need
 	 * a 4-tuple hash.
 	 */
-	flowid = m->m_pkthdr.flowid;
 	flowtype = M_HASHTYPE_GET(m);
 
 	if (flowtype != M_HASHTYPE_NONE) {