HV: treewide: fix violations of coding guideline C-PP-04

The coding guideline rule C-PP-04 requires that 'parentheses shall be used
when referencing a MACRO parameter'. This patch adds parentheses to macro
parameters or expressions that are not yet wrapped properly.

This patch has no sematic impact.

Tracked-On: #6776
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Junjie Mao
2021-10-29 10:54:41 +08:00
committed by wenlingz
parent d5c137eac5
commit ff891b4f79
5 changed files with 8 additions and 8 deletions

View File

@@ -156,6 +156,6 @@ hlist_add_head(struct hlist_node *n, struct hlist_head *h)
#define hlist_entry(ptr, type, member) container_of(ptr,type,member)
#define hlist_for_each(pos, head) \
for (pos = (head)->first; (pos) != NULL; pos = (pos)->next)
for ((pos) = (head)->first; (pos) != NULL; (pos) = (pos)->next)
#endif /* LIST_H_ */