svn commit: r298459 - head/sys/ofed/drivers/infiniband/core
Ngie Cooper (yaneurabeya)
yaneurabeya at gmail.com
Fri Apr 22 06:40:31 UTC 2016
> On Apr 21, 2016, at 23:39, Hans Petter Selasky <hselasky at FreeBSD.org> wrote:
>
> 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);
Thanks :)!
More information about the svn-src-head
mailing list