git: f9978339d13c - main - Remove dead code.

From: Hans Petter Selasky <hselasky_at_FreeBSD.org>
Date: Tue, 21 Dec 2021 17:35:44 UTC
The branch main has been updated by hselasky:

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

commit f9978339d13c077975c8dce405c574ae88cbc148
Author:     Hans Petter Selasky <hselasky@FreeBSD.org>
AuthorDate: 2021-12-20 16:21:49 +0000
Commit:     Hans Petter Selasky <hselasky@FreeBSD.org>
CommitDate: 2021-12-21 17:35:03 +0000

    Remove dead code.
    
    The variable orig_resid is always set to zero right after the while loop
    where it is cleared.
    
    Reviewed by:    gallatin@ and glebius@
    Differential Revision:  https://reviews.freebsd.org/D33589
    MFC after:      1 week
    Sponsored by:   NVIDIA Networking
---
 sys/kern/uipc_socket.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index b64db8f410f3..6661b8f7b898 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -2172,7 +2172,6 @@ dontblock:
 			else
 				m_freem(cm);
 			if (controlp != NULL) {
-				orig_resid = 0;
 				while (*controlp != NULL)
 					controlp = &(*controlp)->m_next;
 			}