mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-10-09 02:33:28 +00:00
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:
@@ -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_ */
|
||||
|
Reference in New Issue
Block a user