diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-10-27 15:55:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-27 16:03:53 -0400 |
commit | e0f36310f793333d667334bb580c0de8c943bae2 (patch) | |
tree | 9e9a0c26347cd5f00079f705a9c6470c6abe8c87 /net/ipx | |
parent | 5e96d788d93b90e6e1769fb9376ee28bcdc1a041 (diff) |
ipx: remove unnecessary casting on ntohl
use %08X instead of %08lX and remove casting.
Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipx')
-rw-r--r-- | net/ipx/ipx_proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipx/ipx_proc.c b/net/ipx/ipx_proc.c index e15c16a517e7..8391191d3d9c 100644 --- a/net/ipx/ipx_proc.c +++ b/net/ipx/ipx_proc.c | |||
@@ -89,8 +89,8 @@ static int ipx_seq_route_show(struct seq_file *seq, void *v) | |||
89 | 89 | ||
90 | seq_printf(seq, "%08lX ", (unsigned long int)ntohl(rt->ir_net)); | 90 | seq_printf(seq, "%08lX ", (unsigned long int)ntohl(rt->ir_net)); |
91 | if (rt->ir_routed) | 91 | if (rt->ir_routed) |
92 | seq_printf(seq, "%08lX %02X%02X%02X%02X%02X%02X\n", | 92 | seq_printf(seq, "%08X %02X%02X%02X%02X%02X%02X\n", |
93 | (long unsigned int)ntohl(rt->ir_intrfc->if_netnum), | 93 | ntohl(rt->ir_intrfc->if_netnum), |
94 | rt->ir_router_node[0], rt->ir_router_node[1], | 94 | rt->ir_router_node[0], rt->ir_router_node[1], |
95 | rt->ir_router_node[2], rt->ir_router_node[3], | 95 | rt->ir_router_node[2], rt->ir_router_node[3], |
96 | rt->ir_router_node[4], rt->ir_router_node[5]); | 96 | rt->ir_router_node[4], rt->ir_router_node[5]); |