Add KASSERT() and set error code in dead code case to help static code

analysis tools.

Suggested by:	ngie@
Sponsored by:	Mellanox Technologies
MFC after:	1 week
This commit is contained in:
Hans Petter Selasky 2016-04-22 06:39:07 +00:00
parent 10a7a4bf44
commit c3a74bf6d7

View file

@ -404,6 +404,8 @@ mcast:
break;
#endif
default:
KASSERT(0, ("rdma_addr_resolve: Unreachable"));
error = EINVAL;
break;
}
RTFREE(rte);