]> git.baikalelectronics.ru Git - kernel.git/commit
i40iw: Remove macros I40IW_STAG_KEY_FROM_STAG and I40IW_STAG_INDEX_FROM_STAG
authorThomas Huth <thuth@redhat.com>
Wed, 5 Oct 2016 11:55:38 +0000 (13:55 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 12 Dec 2016 22:13:02 +0000 (17:13 -0500)
commit9cb751853df4872fc27554efbf7ba06951397f97
treea8e6502cf0a8faec13536fe1053c24a6c4fff05c
parentb9f94a43deea97a2806e0d3c47a4fd235b7958ae
i40iw: Remove macros I40IW_STAG_KEY_FROM_STAG and I40IW_STAG_INDEX_FROM_STAG

The macros I40IW_STAG_KEY_FROM_STAG and I40IW_STAG_INDEX_FROM_STAG are
apparently bad - they are using the logical "&&" operation which
does not make sense here. It should have been a bitwise "&" instead.
Since the macros seem to be completely unused, let's simply remove
them so that nobody accidentially uses them in the future. And while
we're at it, also remove the unused macro I40IW_CREATE_STAG.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Acked-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_user.h