svn commit: r315256 - stable/11/sys/ofed/drivers/infiniband/hw/mlx4

Hans Petter Selasky hselasky at FreeBSD.org
Tue Mar 14 15:42:28 UTC 2017


Author: hselasky
Date: Tue Mar 14 15:42:27 2017
New Revision: 315256
URL: https://svnweb.freebsd.org/changeset/base/315256

Log:
  MFC r313778:
  
  Improve code readability and fix compilation error when using clang 4.x.
  
  Found by:		emaste @
  Sponsored by:		Mellanox Technologies

Modified:
  stable/11/sys/ofed/drivers/infiniband/hw/mlx4/mad.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/ofed/drivers/infiniband/hw/mlx4/mad.c
==============================================================================
--- stable/11/sys/ofed/drivers/infiniband/hw/mlx4/mad.c	Tue Mar 14 15:37:29 2017	(r315255)
+++ stable/11/sys/ofed/drivers/infiniband/hw/mlx4/mad.c	Tue Mar 14 15:42:27 2017	(r315256)
@@ -614,7 +614,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-all mailing list