Commit b3b8dc51c16cdaca0d191a340022093fb5c9f003

Authored by David S. Miller
1 parent 9bf9055eb7

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>

Showing 1 changed file with 0 additions and 8 deletions Side-by-side Diff

net/econet/af_econet.c
... ... @@ -935,7 +935,6 @@
935 935 struct sk_buff *skb;
936 936 unsigned char *data;
937 937 struct aunhdr *ah;
938   - struct iphdr *ip;
939 938 size_t len;
940 939  
941 940 while ((skb = skb_recv_datagram(sk, 0, 1, &err)) == NULL) {
... ... @@ -949,7 +948,6 @@
949 948 data = skb_transport_header(skb) + sizeof(struct udphdr);
950 949 ah = (struct aunhdr *)data;
951 950 len = skb->len - sizeof(struct udphdr);
952   - ip = ip_hdr(skb);
953 951  
954 952 switch (ah->code)
955 953 {
... ... @@ -962,12 +960,6 @@
962 960 case 4:
963 961 aun_tx_ack(ah->handle, ECTYPE_TRANSMIT_NOT_LISTENING);
964 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 963 default:
972 964 printk(KERN_DEBUG "unknown AUN packet (type %d)\n", data[0]);
973 965 }