diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-10-29 04:31:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-30 15:51:43 -0400 |
commit | e7b6658ea8cae3b7ab86e2985011126d181128fb (patch) | |
tree | e88c04f75cb9780ccb067a3c8f1479ddc4adb19c | |
parent | f541a22ae97c6ca6b845d2b585f8feefd913b4bf (diff) |
ipx: remove all unnecessary castings on ntohl
Apply commit e0f36310f793
("ipx: remove unnecessary casting on ntohl")
to all seq_printf/08lX
Inspired-by: "David S. Miller" <davem@davemloft.net>
Inspired-by: Joe Perches <joe@perches.com>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipx/ipx_proc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/ipx/ipx_proc.c b/net/ipx/ipx_proc.c index 8391191d3d9c..c1d247ebe916 100644 --- a/net/ipx/ipx_proc.c +++ b/net/ipx/ipx_proc.c | |||
@@ -45,7 +45,7 @@ static int ipx_seq_interface_show(struct seq_file *seq, void *v) | |||
45 | } | 45 | } |
46 | 46 | ||
47 | i = list_entry(v, struct ipx_interface, node); | 47 | i = list_entry(v, struct ipx_interface, node); |
48 | seq_printf(seq, "%08lX ", (unsigned long int)ntohl(i->if_netnum)); | 48 | seq_printf(seq, "%08X ", ntohl(i->if_netnum)); |
49 | seq_printf(seq, "%02X%02X%02X%02X%02X%02X ", | 49 | seq_printf(seq, "%02X%02X%02X%02X%02X%02X ", |
50 | i->if_node[0], i->if_node[1], i->if_node[2], | 50 | i->if_node[0], i->if_node[1], i->if_node[2], |
51 | i->if_node[3], i->if_node[4], i->if_node[5]); | 51 | i->if_node[3], i->if_node[4], i->if_node[5]); |
@@ -87,7 +87,7 @@ static int ipx_seq_route_show(struct seq_file *seq, void *v) | |||
87 | 87 | ||
88 | rt = list_entry(v, struct ipx_route, node); | 88 | rt = list_entry(v, struct ipx_route, node); |
89 | 89 | ||
90 | seq_printf(seq, "%08lX ", (unsigned long int)ntohl(rt->ir_net)); | 90 | seq_printf(seq, "%08X ", ntohl(rt->ir_net)); |
91 | if (rt->ir_routed) | 91 | if (rt->ir_routed) |
92 | seq_printf(seq, "%08X %02X%02X%02X%02X%02X%02X\n", | 92 | seq_printf(seq, "%08X %02X%02X%02X%02X%02X%02X\n", |
93 | ntohl(rt->ir_intrfc->if_netnum), | 93 | ntohl(rt->ir_intrfc->if_netnum), |
@@ -194,19 +194,19 @@ static int ipx_seq_socket_show(struct seq_file *seq, void *v) | |||
194 | s = v; | 194 | s = v; |
195 | ipxs = ipx_sk(s); | 195 | ipxs = ipx_sk(s); |
196 | #ifdef CONFIG_IPX_INTERN | 196 | #ifdef CONFIG_IPX_INTERN |
197 | seq_printf(seq, "%08lX:%02X%02X%02X%02X%02X%02X:%04X ", | 197 | seq_printf(seq, "%08X:%02X%02X%02X%02X%02X%02X:%04X ", |
198 | (unsigned long)ntohl(ipxs->intrfc->if_netnum), | 198 | ntohl(ipxs->intrfc->if_netnum), |
199 | ipxs->node[0], ipxs->node[1], ipxs->node[2], ipxs->node[3], | 199 | ipxs->node[0], ipxs->node[1], ipxs->node[2], ipxs->node[3], |
200 | ipxs->node[4], ipxs->node[5], ntohs(ipxs->port)); | 200 | ipxs->node[4], ipxs->node[5], ntohs(ipxs->port)); |
201 | #else | 201 | #else |
202 | seq_printf(seq, "%08lX:%04X ", (unsigned long) ntohl(ipxs->intrfc->if_netnum), | 202 | seq_printf(seq, "%08X:%04X ", ntohl(ipxs->intrfc->if_netnum), |
203 | ntohs(ipxs->port)); | 203 | ntohs(ipxs->port)); |
204 | #endif /* CONFIG_IPX_INTERN */ | 204 | #endif /* CONFIG_IPX_INTERN */ |
205 | if (s->sk_state != TCP_ESTABLISHED) | 205 | if (s->sk_state != TCP_ESTABLISHED) |
206 | seq_printf(seq, "%-28s", "Not_Connected"); | 206 | seq_printf(seq, "%-28s", "Not_Connected"); |
207 | else { | 207 | else { |
208 | seq_printf(seq, "%08lX:%02X%02X%02X%02X%02X%02X:%04X ", | 208 | seq_printf(seq, "%08X:%02X%02X%02X%02X%02X%02X:%04X ", |
209 | (unsigned long)ntohl(ipxs->dest_addr.net), | 209 | ntohl(ipxs->dest_addr.net), |
210 | ipxs->dest_addr.node[0], ipxs->dest_addr.node[1], | 210 | ipxs->dest_addr.node[0], ipxs->dest_addr.node[1], |
211 | ipxs->dest_addr.node[2], ipxs->dest_addr.node[3], | 211 | ipxs->dest_addr.node[2], ipxs->dest_addr.node[3], |
212 | ipxs->dest_addr.node[4], ipxs->dest_addr.node[5], | 212 | ipxs->dest_addr.node[4], ipxs->dest_addr.node[5], |