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>
This commit is contained in:
Gilad Ben-Yossef 2017-06-01 14:02:56 +03:00 committed by Greg Kroah-Hartman
parent 33c73ae72e
commit a0eee1b6da
1 changed files with 1 additions and 1 deletions

View File

@ -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_ */