aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2016-10-05 07:55:38 -0400
committerDoug Ledford <dledford@redhat.com>2016-12-12 17:13:02 -0500
commit5e589171225b6aeac5eaca0b0887bd83dc9376d8 (patch)
treea8e6502cf0a8faec13536fe1053c24a6c4fff05c
parent78300cf8152f87adb20fbe71a600e0d8d72aabe8 (diff)
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>
-rw-r--r--drivers/infiniband/hw/i40iw/i40iw_user.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_user.h b/drivers/infiniband/hw/i40iw/i40iw_user.h
index 66263fced68f..80d9f464f65e 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_user.h
+++ b/drivers/infiniband/hw/i40iw/i40iw_user.h
@@ -96,12 +96,6 @@ enum i40iw_device_capabilities_const {
96#define i40iw_physical_fragment u64 96#define i40iw_physical_fragment u64
97#define i40iw_address_list u64 * 97#define i40iw_address_list u64 *
98 98
99#define I40IW_CREATE_STAG(index, key) (((index) << 8) + (key))
100
101#define I40IW_STAG_KEY_FROM_STAG(stag) ((stag) && 0x000000FF)
102
103#define I40IW_STAG_INDEX_FROM_STAG(stag) (((stag) && 0xFFFFFF00) >> 8)
104
105#define I40IW_MAX_MR_SIZE 0x10000000000L 99#define I40IW_MAX_MR_SIZE 0x10000000000L
106 100
107struct i40iw_qp_uk; 101struct i40iw_qp_uk;