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:
hselasky 2017-02-15 18:31:09 +00:00
parent 6fdbd0d271
commit 8576a4ff06

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