From 08c6504d07c7c7094603f6d62319cd3ddc348a6f Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Wed, 15 Feb 2017 18:31:09 +0000 Subject: [PATCH] Improve code readability and fix compilation error when using clang 4.x. Found by: emaste @ MFC after: 1 week Sponsored by: Mellanox Technologies --- sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c b/sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c index c910165cf7f..dd02acc7e40 100644 --- a/sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c +++ b/sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c @@ -614,7 +614,7 @@ static int mlx4_ib_demux_mad(struct ib_device *ibdev, u8 port, 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; }