diff options
author | David S. Miller <davem@davemloft.net> | 2011-04-17 03:15:22 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-17 03:15:22 -0400 |
commit | b3b8dc51c16cdaca0d191a340022093fb5c9f003 (patch) | |
tree | a77d594c96aa66b51403a5241ba822ff61f2de49 /net/econet | |
parent | 9bf9055eb716f85372c41b3fbc51f90bc7653740 (diff) |
econet: Fix set-but-unused variable.
#if 0'd out code for IP handling in aun_data_available() has
been commented out since the beginning, which makes the variable
"ip" set but not used.
Kill it off as well as the stub code.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/econet')
-rw-r--r-- | net/econet/af_econet.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/net/econet/af_econet.c b/net/econet/af_econet.c index 116d3fd3d669..a1d9f3787dd5 100644 --- a/net/econet/af_econet.c +++ b/net/econet/af_econet.c | |||
@@ -935,7 +935,6 @@ static void aun_data_available(struct sock *sk, int slen) | |||
935 | struct sk_buff *skb; | 935 | struct sk_buff *skb; |
936 | unsigned char *data; | 936 | unsigned char *data; |
937 | struct aunhdr *ah; | 937 | struct aunhdr *ah; |
938 | struct iphdr *ip; | ||
939 | size_t len; | 938 | size_t len; |
940 | 939 | ||
941 | while ((skb = skb_recv_datagram(sk, 0, 1, &err)) == NULL) { | 940 | while ((skb = skb_recv_datagram(sk, 0, 1, &err)) == NULL) { |
@@ -949,7 +948,6 @@ static void aun_data_available(struct sock *sk, int slen) | |||
949 | data = skb_transport_header(skb) + sizeof(struct udphdr); | 948 | data = skb_transport_header(skb) + sizeof(struct udphdr); |
950 | ah = (struct aunhdr *)data; | 949 | ah = (struct aunhdr *)data; |
951 | len = skb->len - sizeof(struct udphdr); | 950 | len = skb->len - sizeof(struct udphdr); |
952 | ip = ip_hdr(skb); | ||
953 | 951 | ||
954 | switch (ah->code) | 952 | switch (ah->code) |
955 | { | 953 | { |
@@ -962,12 +960,6 @@ static void aun_data_available(struct sock *sk, int slen) | |||
962 | case 4: | 960 | case 4: |
963 | aun_tx_ack(ah->handle, ECTYPE_TRANSMIT_NOT_LISTENING); | 961 | aun_tx_ack(ah->handle, ECTYPE_TRANSMIT_NOT_LISTENING); |
964 | break; | 962 | break; |
965 | #if 0 | ||
966 | /* This isn't quite right yet. */ | ||
967 | case 5: | ||
968 | aun_send_response(ip->saddr, ah->handle, 6, ah->cb); | ||
969 | break; | ||
970 | #endif | ||
971 | default: | 963 | default: |
972 | printk(KERN_DEBUG "unknown AUN packet (type %d)\n", data[0]); | 964 | printk(KERN_DEBUG "unknown AUN packet (type %d)\n", data[0]); |
973 | } | 965 | } |