git: 9887997e7756 - stable/12 - ipft_pc: remove set-but-not-unused vars

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Tue, 14 Dec 2021 01:22:10 UTC
The branch stable/12 has been updated by cy:

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

commit 9887997e775602607a778f50f545982944b0618b
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2021-12-11 04:48:17 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2021-12-14 01:19:23 +0000

    ipft_pc: remove set-but-not-unused vars
    
    (cherry picked from commit 712b938661f98a66180832632550060c7ba387df)
---
 contrib/ipfilter/lib/ipft_pc.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/contrib/ipfilter/lib/ipft_pc.c b/contrib/ipfilter/lib/ipft_pc.c
index bd0c752c392f..65eee078bd06 100644
--- a/contrib/ipfilter/lib/ipft_pc.c
+++ b/contrib/ipfilter/lib/ipft_pc.c
@@ -138,16 +138,13 @@ static	int	ipcap_read_rec(rec)
 	packetheader_t *rec;
 {
 	int	n, p, i;
-	char	*s;
 
-	s = (char *)rec;
 	n = sizeof(*rec);
 
 	while (n > 0) {
 		i = read(pfd, (char *)rec, sizeof(*rec));
 		if (i <= 0)
 			return -2;
-		s += i;
 		n -= i;
 	}