svn commit: r298459 - head/sys/ofed/drivers/infiniband/core
Hans Petter Selasky
hselasky at FreeBSD.org
Fri Apr 22 06:39:09 UTC 2016
Author: hselasky
Date: Fri Apr 22 06:39:07 2016
New Revision: 298459
URL: https://svnweb.freebsd.org/changeset/base/298459
Log:
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
Modified:
head/sys/ofed/drivers/infiniband/core/addr.c
Modified: head/sys/ofed/drivers/infiniband/core/addr.c
==============================================================================
--- head/sys/ofed/drivers/infiniband/core/addr.c Fri Apr 22 06:33:06 2016 (r298458)
+++ head/sys/ofed/drivers/infiniband/core/addr.c Fri Apr 22 06:39:07 2016 (r298459)
@@ -404,6 +404,8 @@ mcast:
break;
#endif
default:
+ KASSERT(0, ("rdma_addr_resolve: Unreachable"));
+ error = EINVAL;
break;
}
RTFREE(rte);
More information about the svn-src-head
mailing list