]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: hns3: add complete parentheses for some macros
authorJijie Shao <shaojijie@huawei.com>
Mon, 23 Jun 2025 04:00:42 +0000 (12:00 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 25 Jun 2025 00:09:22 +0000 (17:09 -0700)
Add complete parentheses for some macros to fix static check
warning.

Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250623040043.857782-7-shaojijie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h

index d36c4ed16d8dd25251df92377f91a24cf3961e01..dd61ddd8f9048e5e66981c483861d67e01cf87bc 100644 (file)
@@ -692,7 +692,7 @@ static inline unsigned int hns3_page_order(struct hns3_enet_ring *ring)
 
 /* iterator for handling rings in ring group */
 #define hns3_for_each_ring(pos, head) \
-       for (pos = (head).ring; (pos); pos = (pos)->next)
+       for ((pos) = (head).ring; (pos); (pos) = (pos)->next)
 
 #define hns3_get_handle(ndev) \
        (((struct hns3_nic_priv *)netdev_priv(ndev))->ae_handle)