i40iw: Remove macros I40IW_STAG_KEY_FROM_STAG and I40IW_STAG_INDEX_FROM_STAG
PATCH 1/1 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.
--- drivers/infiniband/hw/i40iw/i40iw_user.h | 6 ------ 1 file changed, 6 deletions(-)
drivers/infiniband/hw/i40iw/i40iw_user.h +0 -6
@@ -96,12 +96,6 @@ enum i40iw_device_capabilities_const {#define i40iw_physical_fragment u64#define i40iw_address_list u64 * -#define I40IW_CREATE_STAG (index, key) (((index) << 8) + (key)) - -#define I40IW_STAG_KEY_FROM_STAG (stag) ((stag) && 0x000000FF) - -#define I40IW_STAG_INDEX_FROM_STAG (stag) (((stag) && 0xFFFFFF00) >> 8) -#define I40IW_MAX_MR_SIZE 0x10000000000Lstruct i40iw_qp_uk ;
Signature · 6 lines
1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1475668538-12914-1-git-send-email-thuth-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Leon Romanovsky
Reviewed-byQuoted 8 lines · Thomas Huth
The macros
I40IW_STAG_KEY_FROM_STAGandI40IW_STAG_INDEX_FROM_STAGare 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 macroI40IW_CREATE_STAG.Signed-off-by Thomas Huth <[email protected]>
Thanks,
A message that is not in the archive (sent off-list or not yet received): 20161005125711.GG9282-2ukJVAZIZ/[email protected]
Faisal Latif
Acked-byQuoted 8 lines · Leon Romanovsky
Quoted 7 lines · Thomas Huth
The macros
I40IW_STAG_KEY_FROM_STAGandI40IW_STAG_INDEX_FROM_STAGare 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 macroI40IW_CREATE_STAG.
Quoted 4 lines
Quoted 1 line
Signed-off-by Thomas Huth <[email protected]>Thanks,
Thanks
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Doug Ledford
AppliedQuoted 9 lines · Faisal Latif
Quoted 8 lines · Leon Romanovsky
Quoted 7 lines · Thomas Huth
The macros
I40IW_STAG_KEY_FROM_STAGandI40IW_STAG_INDEX_FROM_STAGare 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 macroI40IW_CREATE_STAG.
Quoted 9 lines
Quoted 4 lines
Quoted 1 line
Signed-off-by Thomas Huth <[email protected]>Thanks,
Thanks
Acked-by Faisal Latif <[email protected]>
Applied, thanks.
Signature · 2 lines
Doug Ledford <[email protected]> GPG Key ID: 0E572FDD