Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jan 2022 13:09:31 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: a889d262a758 - stable/13 - Remove dead code.
Message-ID:  <202201071309.207D9V5A094654@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 			}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201071309.207D9V5A094654>