aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2017-06-01 14:02:56 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-03 17:45:06 +0900
commita0eee1b6dabd79019196fd1d1a66eeb93788867a (patch)
tree96403594d8fbb242f13a9dcdb21bbedddd2fb824
parentstaging: ccree: fix comments formatting (diff)
staging: ccree: add parentheses to macro argument
Add parentheses around macro argument to guard against precedence issues. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/ccree/cc_crypto_ctx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ccree/cc_crypto_ctx.h b/drivers/staging/ccree/cc_crypto_ctx.h
index 46b6f3f3193a..1fc68defc59c 100644
--- a/drivers/staging/ccree/cc_crypto_ctx.h
+++ b/drivers/staging/ccree/cc_crypto_ctx.h
@@ -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_ */