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:
parent
33c73ae72e
commit
a0eee1b6da
|
@ -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_ */
|
||||
|
||||
|
|
Loading…
Reference in New Issue