diff options
author | Stefan Raspl <raspl@linux.vnet.ibm.com> | 2013-04-21 21:12:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-22 15:39:27 -0400 |
commit | 065cc782e7d2fa4b1b31964d75a29fa72138242c (patch) | |
tree | 56d609156bc3690cf9760414887f8d8ee5ab122e /drivers/s390 | |
parent | 4a912f9822f532d3988784600d84478667eca1bd (diff) |
qeth: remove unused variable
remove unused variable
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
Signed-off-by: Frank Blaschka <blaschka@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/net/qeth_core.h | 2 | ||||
-rw-r--r-- | drivers/s390/net/qeth_core_main.c | 2 | ||||
-rw-r--r-- | drivers/s390/net/qeth_l2_main.c | 3 | ||||
-rw-r--r-- | drivers/s390/net/qeth_l3_main.c | 3 |
4 files changed, 4 insertions, 6 deletions
diff --git a/drivers/s390/net/qeth_core.h b/drivers/s390/net/qeth_core.h index 8c0622399fcd..762d6dd1e8ba 100644 --- a/drivers/s390/net/qeth_core.h +++ b/drivers/s390/net/qeth_core.h | |||
@@ -915,7 +915,7 @@ int qeth_send_control_data(struct qeth_card *, int, struct qeth_cmd_buffer *, | |||
915 | int (*reply_cb)(struct qeth_card *, struct qeth_reply*, unsigned long), | 915 | int (*reply_cb)(struct qeth_card *, struct qeth_reply*, unsigned long), |
916 | void *reply_param); | 916 | void *reply_param); |
917 | int qeth_get_priority_queue(struct qeth_card *, struct sk_buff *, int, int); | 917 | int qeth_get_priority_queue(struct qeth_card *, struct sk_buff *, int, int); |
918 | int qeth_get_elements_no(struct qeth_card *, void *, struct sk_buff *, int); | 918 | int qeth_get_elements_no(struct qeth_card *, struct sk_buff *, int); |
919 | int qeth_get_elements_for_frags(struct sk_buff *); | 919 | int qeth_get_elements_for_frags(struct sk_buff *); |
920 | int qeth_do_send_packet_fast(struct qeth_card *, struct qeth_qdio_out_q *, | 920 | int qeth_do_send_packet_fast(struct qeth_card *, struct qeth_qdio_out_q *, |
921 | struct sk_buff *, struct qeth_hdr *, int, int, int); | 921 | struct sk_buff *, struct qeth_hdr *, int, int, int); |
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index 3a89ab73f668..0aa9462c50ec 100644 --- a/drivers/s390/net/qeth_core_main.c +++ b/drivers/s390/net/qeth_core_main.c | |||
@@ -3698,7 +3698,7 @@ int qeth_get_elements_for_frags(struct sk_buff *skb) | |||
3698 | } | 3698 | } |
3699 | EXPORT_SYMBOL_GPL(qeth_get_elements_for_frags); | 3699 | EXPORT_SYMBOL_GPL(qeth_get_elements_for_frags); |
3700 | 3700 | ||
3701 | int qeth_get_elements_no(struct qeth_card *card, void *hdr, | 3701 | int qeth_get_elements_no(struct qeth_card *card, |
3702 | struct sk_buff *skb, int elems) | 3702 | struct sk_buff *skb, int elems) |
3703 | { | 3703 | { |
3704 | int dlen = skb->len - skb->data_len; | 3704 | int dlen = skb->len - skb->data_len; |
diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c index e68f79b38556..e53c0c8ace76 100644 --- a/drivers/s390/net/qeth_l2_main.c +++ b/drivers/s390/net/qeth_l2_main.c | |||
@@ -773,8 +773,7 @@ static int qeth_l2_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
773 | } | 773 | } |
774 | } | 774 | } |
775 | 775 | ||
776 | elements = qeth_get_elements_no(card, (void *)hdr, new_skb, | 776 | elements = qeth_get_elements_no(card, new_skb, elements_needed); |
777 | elements_needed); | ||
778 | if (!elements) { | 777 | if (!elements) { |
779 | if (data_offset >= 0) | 778 | if (data_offset >= 0) |
780 | kmem_cache_free(qeth_core_header_cache, hdr); | 779 | kmem_cache_free(qeth_core_header_cache, hdr); |
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index c915e5cd7f47..29914ed8bbbc 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c | |||
@@ -3037,8 +3037,7 @@ static int qeth_l3_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
3037 | qeth_l3_hdr_csum(card, hdr, new_skb); | 3037 | qeth_l3_hdr_csum(card, hdr, new_skb); |
3038 | } | 3038 | } |
3039 | 3039 | ||
3040 | elems = qeth_get_elements_no(card, (void *)hdr, new_skb, | 3040 | elems = qeth_get_elements_no(card, new_skb, elements_needed); |
3041 | elements_needed); | ||
3042 | if (!elems) { | 3041 | if (!elems) { |
3043 | if (data_offset >= 0) | 3042 | if (data_offset >= 0) |
3044 | kmem_cache_free(qeth_core_header_cache, hdr); | 3043 | kmem_cache_free(qeth_core_header_cache, hdr); |