Author: hselasky Date: Wed Feb 15 18:31:09 2017 New Revision: 313778 URL: https://svnweb.freebsd.org/changeset/base/313778
Log: Improve code readability and fix compilation error when using clang 4.x. Found by: emaste @ MFC after: 1 week Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c Modified: head/sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c ============================================================================== --- head/sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c Wed Feb 15 17:33:03 2017 (r313777) +++ head/sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c Wed Feb 15 18:31:09 2017 (r313778) @@ -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; } _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"