[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_87F4A935227D7FACE9A05E681FC13882F40A@qq.com>
Date: Fri, 4 Jul 2025 17:10:11 +0800
From: Liangming Liu <liangming.liu@...mail.com>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org,
Liangming Liu <liangming.liu@...mail.com>
Subject: [PATCH] net: ipv4: fix mixed tab and space indentation in af_inet.c
Fixes mixed use of tabs and spaces in af_inet.c to comply with
Linux kernel coding style. This change does not affect logic
or functionality.
Signed-off-by: Liangming Liu <liangming.liu@...mail.com>
---
net/ipv4/af_inet.c | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index 76e38092cd8a..5a5aabb962d8 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -501,7 +501,7 @@ int __inet_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len,
*/
err = -EADDRNOTAVAIL;
if (!inet_addr_valid_or_nonlocal(net, inet, addr->sin_addr.s_addr,
- chk_addr_ret))
+ chk_addr_ret))
goto out;
snum = ntohs(addr->sin_port);
@@ -1167,23 +1167,23 @@ static struct inet_protosw inetsw_array[] =
.prot = &udp_prot,
.ops = &inet_dgram_ops,
.flags = INET_PROTOSW_PERMANENT,
- },
+ },
- {
+ {
.type = SOCK_DGRAM,
.protocol = IPPROTO_ICMP,
.prot = &ping_prot,
.ops = &inet_sockraw_ops,
.flags = INET_PROTOSW_REUSE,
- },
-
- {
- .type = SOCK_RAW,
- .protocol = IPPROTO_IP, /* wild card */
- .prot = &raw_prot,
- .ops = &inet_sockraw_ops,
- .flags = INET_PROTOSW_REUSE,
- }
+ },
+
+ {
+ .type = SOCK_RAW,
+ .protocol = IPPROTO_IP, /* wild card */
+ .prot = &raw_prot,
+ .ops = &inet_sockraw_ops,
+ .flags = INET_PROTOSW_REUSE,
+ }
};
#define INETSW_ARRAY_LEN ARRAY_SIZE(inetsw_array)
--
2.43.0
Powered by blists - more mailing lists