netdev
[Top] [All Lists]

[patch-kj] net/econet/af_econet.c fix warning xyz never used

To: netdev@xxxxxxxxxxx
Subject: [patch-kj] net/econet/af_econet.c fix warning xyz never used
From: maximilian attems <janitor@xxxxxxxxxxxxxx>
Date: Mon, 21 Jun 2004 19:09:04 +0200
Mail-followup-to: netdev@xxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6+20040523i
From: <WHarms@xxxxxx>(Walter Harms)
moving the define a bit higher removes two useless warnings.

regards,
walter

Signed-off-by: Maximilian Attems <janitor@xxxxxxxxxxxxxx>



---

 linux-2.6.7-max/net/econet/af_econet.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN net/econet/af_econet.c~fix-warning-af_econet net/econet/af_econet.c
--- linux-2.6.7/net/econet/af_econet.c~fix-warning-af_econet    2004-06-18 
10:20:06.000000000 +0200
+++ linux-2.6.7-max/net/econet/af_econet.c      2004-06-18 10:20:06.000000000 
+0200
@@ -255,9 +255,9 @@ static int econet_sendmsg(struct kiocb *
        struct ec_addr addr;
        int err;
        unsigned char port, cb;
+#ifdef CONFIG_ECONET_NATIVE
        struct sk_buff *skb;
        struct ec_cb *eb;
-#ifdef CONFIG_ECONET_NATIVE
        unsigned short proto = 0;
 #endif
 #ifdef CONFIG_ECONET_AUNUDP


<Prev in Thread] Current Thread [Next in Thread>