diff options
Diffstat (limited to 'net/ax25/af_ax25.c')
-rw-r--r-- | net/ax25/af_ax25.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c index 00d9e5e13158..fd9d06f291dc 100644 --- a/net/ax25/af_ax25.c +++ b/net/ax25/af_ax25.c | |||
@@ -1529,10 +1529,8 @@ static int ax25_sendmsg(struct kiocb *iocb, struct socket *sock, | |||
1529 | dp = ax25->digipeat; | 1529 | dp = ax25->digipeat; |
1530 | } | 1530 | } |
1531 | 1531 | ||
1532 | SOCK_DEBUG(sk, "AX.25: sendto: Addresses built.\n"); | ||
1533 | |||
1534 | /* Build a packet */ | 1532 | /* Build a packet */ |
1535 | SOCK_DEBUG(sk, "AX.25: sendto: building packet.\n"); | 1533 | SOCK_DEBUG(sk, "AX.25: sendto: Addresses built. Building packet.\n"); |
1536 | 1534 | ||
1537 | /* Assume the worst case */ | 1535 | /* Assume the worst case */ |
1538 | size = len + ax25->ax25_dev->dev->hard_header_len; | 1536 | size = len + ax25->ax25_dev->dev->hard_header_len; |
@@ -1985,9 +1983,8 @@ static const struct proto_ops ax25_proto_ops = { | |||
1985 | /* | 1983 | /* |
1986 | * Called by socket.c on kernel start up | 1984 | * Called by socket.c on kernel start up |
1987 | */ | 1985 | */ |
1988 | static struct packet_type ax25_packet_type = { | 1986 | static struct packet_type ax25_packet_type __read_mostly = { |
1989 | .type = __constant_htons(ETH_P_AX25), | 1987 | .type = cpu_to_be16(ETH_P_AX25), |
1990 | .dev = NULL, /* All devices */ | ||
1991 | .func = ax25_kiss_rcv, | 1988 | .func = ax25_kiss_rcv, |
1992 | }; | 1989 | }; |
1993 | 1990 | ||