Date: Wed, 15 Feb 2017 18:31:09 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r313778 - head/sys/dev/mlx4/mlx4_ib Message-ID: <201702151831.v1FIV9HN071258@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702151831.v1FIV9HN071258>