Commit a0eee1b6 authored by Gilad Ben-Yossef's avatar Gilad Ben-Yossef Committed by Greg Kroah-Hartman

staging: ccree: add parentheses to macro argument

Add parentheses around macro argument to guard against precedence
issues.
Signed-off-by: default avatarGilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 33c73ae7
......@@ -280,7 +280,7 @@ struct drv_ctx_aead {
* @type: Type of context structure
* @member: Associated context field
*/
#define GET_CTX_FIELD_ADDR(ctx, type, member) (ctx + offsetof(type, member))
#define GET_CTX_FIELD_ADDR(ctx, type, member) ((ctx) + offsetof(type, member))
#endif /* _CC_CRYPTO_CTX_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment