1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-30 08:19:09 +00:00

Improve code readability and fix compilation error when using clang 4.x.

Found by:		emaste @
MFC after:		1 week
Sponsored by:		Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2017-02-15 18:31:09 +00:00
parent 07a4559495
commit 08c6504d07
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313778

View File

@ -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;
}