aboutsummaryrefslogtreecommitdiffstats
path: root/net/decnet/sysctl_net_decnet.c
diff options
context:
space:
mode:
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 2f360a1e5e4..965397af9a8 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