diff options
author | hselasky <hselasky@FreeBSD.org> | 2017-03-14 15:42:27 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2017-03-14 15:42:27 +0000 |
commit | bcaaadbb0f8ec1510804f6925ed7c3e3cbe3df6f (patch) | |
tree | 040ca8773c25cee2159aa7eb5aecd31f7801924a | |
parent | 16c57f11333f40258d24996555cf8ef121d50cba (diff) | |
download | FreeBSD-src-bcaaadbb0f8ec1510804f6925ed7c3e3cbe3df6f.zip FreeBSD-src-bcaaadbb0f8ec1510804f6925ed7c3e3cbe3df6f.tar.gz |
MFC r313778:
Improve code readability and fix compilation error when using clang 4.x.
Found by: emaste @
Sponsored by: Mellanox Technologies
-rw-r--r-- | sys/ofed/drivers/infiniband/hw/mlx4/mad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ofed/drivers/infiniband/hw/mlx4/mad.c b/sys/ofed/drivers/infiniband/hw/mlx4/mad.c index 9c5b140..9ff402f 100644 --- a/sys/ofed/drivers/infiniband/hw/mlx4/mad.c +++ b/sys/ofed/drivers/infiniband/hw/mlx4/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; } |