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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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_ */