Date: Wed, 13 Apr 2022 23:09:34 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: ac3e46fa3ece - main - infiniband_resolve_addr: ih is only used for INET or INET6. Message-ID: <202204132309.23DN9YiU074564@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ac3e46fa3ece4f3c551a481a052a5a0d3a829b54 commit ac3e46fa3ece4f3c551a481a052a5a0d3a829b54 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-13 23:08:21 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-13 23:08:21 +0000 infiniband_resolve_addr: ih is only used for INET or INET6. --- sys/net/if_infiniband.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/net/if_infiniband.c b/sys/net/if_infiniband.c index 4dfbd5272d15..c673b7d30a79 100644 --- a/sys/net/if_infiniband.c +++ b/sys/net/if_infiniband.c @@ -223,13 +223,14 @@ infiniband_resolve_addr(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst, struct route *ro, uint8_t *phdr, uint32_t *pflags, struct llentry **plle) { - struct infiniband_header *ih; +#if defined(INET) || defined(INET6) + struct infiniband_header *ih = (struct infiniband_header *)phdr; +#endif uint32_t lleflags = 0; int error = 0; if (plle) *plle = NULL; - ih = (struct infiniband_header *)phdr; switch (dst->sa_family) { #ifdef INET
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204132309.23DN9YiU074564>