git: a889d262a758 - stable/13 - Remove dead code.

From: Hans Petter Selasky <hselasky_at_FreeBSD.org>
Date: Fri, 07 Jan 2022 13:09:31 UTC
The branch stable/13 has been updated by hselasky:

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

commit a889d262a75894c71b9e84d106b04069ee824992
Author:     Hans Petter Selasky <hselasky@FreeBSD.org>
AuthorDate: 2021-12-20 16:21:49 +0000
Commit:     Hans Petter Selasky <hselasky@FreeBSD.org>
CommitDate: 2022-01-07 13:08:59 +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
    Sponsored by:   NVIDIA Networking
    
    (cherry picked from commit f9978339d13c077975c8dce405c574ae88cbc148)
---
 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 92ee7e1f97d0..5d2139cb4a31 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -2115,7 +2115,6 @@ dontblock:
 			else
 				m_freem(cm);
 			if (controlp != NULL) {
-				orig_resid = 0;
 				while (*controlp != NULL)
 					controlp = &(*controlp)->m_next;
 			}