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:
parent
10a7a4bf44
commit
c3a74bf6d7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298459
@ -404,6 +404,8 @@ static int addr_resolve(struct sockaddr *src_in,
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
KASSERT(0, ("rdma_addr_resolve: Unreachable"));
|
||||
error = EINVAL;
|
||||
break;
|
||||
}
|
||||
RTFREE(rte);
|
||||
|
Loading…
Reference in New Issue
Block a user