staging: gdm724x: Place macro argument within parentheses
authorDee-Jay Anthony Logozzo <dj@djl.id.au>
Wed, 11 Aug 2021 13:41:32 +0000 (23:41 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Aug 2021 08:21:50 +0000 (10:21 +0200)
commit959aabedcd91ba659e17191f1d3da96ceb1c4147
tree2123536b97c732bf26810b5f42bd42c27f66ed77
parent25ee7e89d45debc195cc8cec2483e07bbccd1472
staging: gdm724x: Place macro argument within parentheses

Place the macro arguments within parentheses to avoid precedence issues.
This solves the following checkpatch.pl warnings

CHECK: Macro argument 'len' may be better as '(len)' to avoid precedence issues
+#define ND_NLMSG_S_LEN(len)    (len + ND_IFINDEX_LEN)

CHECK: Macro argument 'nlh' may be better as '(nlh)' to avoid precedence issues
+#define ND_NLMSG_R_LEN(nlh)    (nlh->nlmsg_len - ND_IFINDEX_LEN)

Signed-off-by: Dee-Jay Anthony Logozzo <dj@djl.id.au>
Link: https://lore.kernel.org/r/20210811134132.5240-1-dj@djl.id.au
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm724x/netlink_k.c