s390: move var declarations behind ifdef
Subsystems (3)
PATCH 1/1 s390: move var declarations behind ifdef
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]>
---
drivers/s390/net/qeth_main.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
74bcd2e9461534ccd39ec84455b0b2c07c7f24a5
drivers/s390/net/qeth_main.c +2 -0
@@ -4416,8 +4416,10 @@ qeth_send_packet(struct qeth_card *card,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)->tso_size; +#endif int rc;QETH_DBF_TEXT (trace,6 ,"sendpkt" );
Signature · 1 line
1.1.6
Quoted 17 lines · On Wed, 14 Jun 2006 07:07:33 -0500 "Serge E. Hallyn" <[email protected]> wrote:
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]>---
drivers/s390/net/qeth_main.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
74bcd2e9461534ccd39ec84455b0b2c07c7f24a5drivers/s390/net/qeth_main.c +0
-0
drivers/s390/net/qeth_main.c qeth_send_packet(struct qeth_card *card, · line 4425
Quoted 10 lines
drivers/s390/net/qeth_main.c +2
-0@@ -4416,8 +4416,10 @@ qeth_send_packet(struct qeth_card *card,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)->tso_size; +#endif int rc;QETH_DBF_TEXT (trace,6 ,"sendpkt" );
Hi Serge,
thanks for the patch...Applied ...
I will send it out with the next patch series .
Frank