mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue