projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d77f6f
)
[PATCH] s390: move var declarations behind ifdef
author
Serge E. Hallyn
<
[email protected]
>
Mon, 10 Jul 2006 11:45:17 +0000
(
04:45
-0700)
committer
Linus Torvalds
<
[email protected]
>
Mon, 10 Jul 2006 20:24:24 +0000
(13:24 -0700)
Two variables in drivers/s390/net/qeth_main.c:qeth_send_packet() are only
used if CONFIG_QETH_PERF_STATS. Move their definition under the same ifdef
to remove compiler warning.
Signed-off-by: Serge Hallyn <
[email protected]
>
Cc: Martin Schwidefsky <
[email protected]
>
Cc: Heiko Carstens <
[email protected]
>
Cc: Jeff Garzik <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/s390/net/qeth_main.c
patch
|
blob
|
history
diff --git
a/drivers/s390/net/qeth_main.c
b/drivers/s390/net/qeth_main.c
index 329e12c1fae4a725bb7bc3bc2b76af2f3b064273..4caced21ac8c59d054d132c93f7801cfccefa1a9 100644
(file)
--- a/
drivers/s390/net/qeth_main.c
+++ b/
drivers/s390/net/qeth_main.c
@@
-4420,8
+4420,10
@@
qeth_send_packet(struct qeth_card *card, struct sk_buff *skb)
enum qeth_large_send_types large_send = QETH_LARGE_SEND_NO;
struct qeth_eddp_context *ctx = NULL;
int tx_bytes = skb->len;
+#ifdef CONFIG_QETH_PERF_STATS
unsigned short nr_frags = skb_shinfo(skb)->nr_frags;
unsigned short tso_size = skb_shinfo(skb)->gso_size;
+#endif
int rc;
QETH_DBF_TEXT(trace, 6, "sendpkt");