The branch main has been updated by jhb:

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

commit fe5324aca06e80112199c08139f3b9ca77b54f71
Author:     John Baldwin <[email protected]>
AuthorDate: 2022-04-13 23:08:23 +0000
Commit:     John Baldwin <[email protected]>
CommitDate: 2022-04-13 23:08:23 +0000

    in_pcballoc: error is only used for IPSEC or MAC.
---
 sys/netinet/in_pcb.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index 2b7c05391d6d..63b5f39f7577 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -603,9 +603,10 @@ int
 in_pcballoc(struct socket *so, struct inpcbinfo *pcbinfo)
 {
        struct inpcb *inp;
+#if defined(IPSEC) || defined(IPSEC_SUPPORT) || defined(MAC)
        int error;
+#endif
 
-       error = 0;
        inp = uma_zalloc_smr(pcbinfo->ipi_zone, M_NOWAIT);
        if (inp == NULL)
                return (ENOBUFS);

Reply via email to