diff options
author | Or Gerlitz | 2016-12-08 11:58:45 +0100 |
---|---|---|
committer | Saeed Mahameed | 2017-02-06 10:21:34 +0100 |
commit | a61d5ce9cc56e2e41bbb1ad62ca7a16d7e7567bd (patch) | |
tree | fc8d6cab55c600b118af9f693b6bac3f7d5a2c05 /include/linux/mlx5/mlx5_ifc.h | |
parent | Merge branch 'remove-__napi_complete_done' (diff) | |
download | kernel-qcow2-linux-a61d5ce9cc56e2e41bbb1ad62ca7a16d7e7567bd.tar.gz kernel-qcow2-linux-a61d5ce9cc56e2e41bbb1ad62ca7a16d7e7567bd.tar.xz kernel-qcow2-linux-a61d5ce9cc56e2e41bbb1ad62ca7a16d7e7567bd.zip |
net/mlx5: Fix static checker warnings
For some reason, sparse doesn't like using an expression of type (!x)
with a bitwise | and &. In order to mitigate that, we use a local variable.
This removes the following sparse complaints on the core driver
(and similar ones on the IB driver too):
drivers/net/ethernet/mellanox/mlx5/core/srq.c:83:9: warning: dubious: !x & y
drivers/net/ethernet/mellanox/mlx5/core/srq.c:96:9: warning: dubious: !x & y
drivers/net/ethernet/mellanox/mlx5/core/port.c:59:9: warning: dubious: !x & y
drivers/net/ethernet/mellanox/mlx5/core/vport.c:561:9: warning: dubious: !x & y
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Matan Barak <matanb@mellanox.com>
Reported-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/mlx5/mlx5_ifc.h')
0 files changed, 0 insertions, 0 deletions