svn commit: r315257 - stable/10/sys/ofed/drivers/infiniband/hw/mlx4
Hans Petter Selasky
hselasky at FreeBSD.org
Tue Mar 14 15:44:40 UTC 2017
Author: hselasky
Date: Tue Mar 14 15:44:39 2017
New Revision: 315257
URL: https://svnweb.freebsd.org/changeset/base/315257
Log:
MFC r313778:
Improve code readability and fix compilation error when using clang 4.x.
Found by: emaste @
Sponsored by: Mellanox Technologies
Modified:
stable/10/sys/ofed/drivers/infiniband/hw/mlx4/mad.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/ofed/drivers/infiniband/hw/mlx4/mad.c
==============================================================================
--- stable/10/sys/ofed/drivers/infiniband/hw/mlx4/mad.c Tue Mar 14 15:42:27 2017 (r315256)
+++ stable/10/sys/ofed/drivers/infiniband/hw/mlx4/mad.c Tue Mar 14 15:44:39 2017 (r315257)
@@ -593,7 +593,7 @@ static int mlx4_ib_demux_mad(struct ib_d
is_eth = 1;
if (is_eth) {
- if (!wc->wc_flags & IB_WC_GRH) {
+ if (!(wc->wc_flags & IB_WC_GRH)) {
mlx4_ib_warn(ibdev, "RoCE grh not present.\n");
return -EINVAL;
}
More information about the svn-src-stable
mailing list