mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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…
x
Reference in New Issue
Block a user