infiniband_resolve_addr: ih is only used for INET or INET6.
This commit is contained in:
parent
2fdf3ed1e3
commit
ac3e46fa3e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user