aboutsummaryrefslogtreecommitdiffstats
path: root/net/decnet/sysctl_net_decnet.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-11-27 03:12:47 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-27 03:12:47 -0500
commitc4106aa88a440430d387e022f2ad6dc1e0d52e98 (patch)
tree09064e6e767301ca28357ed5125e99123f5beaca /net/decnet/sysctl_net_decnet.c
parent5b9ab2ec04ec1e1e53939768805612ac191d7ba2 (diff)
decnet: remove private wrappers of endian helpers
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Reviewed-by: Steven Whitehouse <swhiteho@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet/sysctl_net_decnet.c')
-rw-r--r--net/decnet/sysctl_net_decnet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/decnet/sysctl_net_decnet.c b/net/decnet/sysctl_net_decnet.c
index 2f360a1e5e49..965397af9a80 100644
--- a/net/decnet/sysctl_net_decnet.c
+++ b/net/decnet/sysctl_net_decnet.c
@@ -126,7 +126,7 @@ static int parse_addr(__le16 *addr, char *str)
126 if (INVALID_END_CHAR(*str)) 126 if (INVALID_END_CHAR(*str))
127 return -1; 127 return -1;
128 128
129 *addr = dn_htons((area << 10) | node); 129 *addr = cpu_to_le16((area << 10) | node);
130 130
131 return 0; 131 return 0;
132} 132}
@@ -201,7 +201,7 @@ static int dn_node_address_handler(ctl_table *table, int write,
201 return 0; 201 return 0;
202 } 202 }
203 203
204 dn_addr2asc(dn_ntohs(decnet_address), addr); 204 dn_addr2asc(le16_to_cpu(decnet_address), addr);
205 len = strlen(addr); 205 len = strlen(addr);
206 addr[len++] = '\n'; 206 addr[len++] = '\n';
207 207