Streamline the infiniband code according to the ethernet code.

Fix LINT-NOIP kernel build.

Submitted by:	rlibby @
Differential Revision:	https://reviews.freebsd.org/D27861
MFC after:	1 week
Sponsored by:	Mellanox Technologies // NVIDIA Networking
This commit is contained in:
Hans Petter Selasky 2020-12-31 10:06:42 +01:00
parent 282381aa53
commit 747feea146

View File

@ -294,9 +294,7 @@ infiniband_output(struct ifnet *ifp, struct mbuf *m,
{
uint8_t linkhdr[INFINIBAND_HDR_LEN];
uint8_t *phdr;
#if defined(INET) || defined(INET6)
struct llentry *lle = NULL;
#endif
struct infiniband_header *ih;
int error = 0;
int hlen; /* link layer header length */