Skip to contentSkip to conversation

net: ipv6: fix inconsistent indentation in ipv6_gro_receive

PATCH In review Suraj Sonawane 2 participants 3 messages Oct 31, 2024 – Nov 5, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: ipv6: fix inconsistent indentation in ipv6_gro_receive

Fix the indentation to ensure consistent code style and improve readability, and to fix this warning:

net/ipv6/ip6_offload.c:280 ipv6_gro_receive() warn: inconsistent indenting

---
 net/ipv6/ip6_offload.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
net/ipv6/ip6_offload.c +4 -4
index 982216342..e4c3ab837 100644
@@ -277,10 +277,10 @@ INDIRECT_CALLABLE_SCOPE struct sk_buff *ipv6_gro_receive(struct list_head *head,
 		 * (nlen != (sizeof(*iph2) + ipv6_exthdrs_len(iph2, &ops)))
 		 * memcmp() alone below is sufficient, right?
 		 */
-		 if ((first_word & htonl(0xF00FFFFF)) ||
-		     !ipv6_addr_equal(&iph->saddr, &iph2->saddr) ||
-		     !ipv6_addr_equal(&iph->daddr, &iph2->daddr) ||
-		     iph->nexthdr != iph2->nexthdr) {
+		if ((first_word & htonl(0xF00FFFFF)) ||
+		    !ipv6_addr_equal(&iph->saddr, &iph2->saddr) ||
+		    !ipv6_addr_equal(&iph->daddr, &iph2->daddr) ||
+		    iph->nexthdr != iph2->nexthdr) {
 not_same_flow:
 			NAPI_GRO_CB(p)->same_flow = 0;
 			continue;
Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 4 lines · On Thu, 31 Oct 2024 12:21:24 +0530 Suraj Sonawane wrote:

Fix the indentation to ensure consistent code style and improve readability, and to fix this warning:

net/ipv6/ip6_offload.c:280 ipv6_gro_receive() warn: inconsistent indenting

Warning from what tool?

Unless it's gcc or clang let's leave the code be, it's fine.

Signature · 1 line
pw-bot: cr
#2 lore raw
Quoted 9 lines · Jakub Kicinski
Quoted 4 lines · On Thu, 31 Oct 2024 12:21:24 +0530 Suraj Sonawane wrote:

Fix the indentation to ensure consistent code style and improve readability, and to fix this warning:

net/ipv6/ip6_offload.c:280 ipv6_gro_receive() warn: inconsistent indenting

Warning from what tool?

Unless it's gcc or clang let's leave the code be, it's fine.

Thank you for the feedback and your time.

The warning was flagged by smatch, a static analysis tool.

Best regards,
Suraj Sonawane