Skip to contentSkip to conversation

net/econet/af_econet.c fix warning xyz never used

patch-kj maximilian attems 2 participants 2 messages Jun 21, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

From: <[email protected]>(Walter Harms)
moving the define a bit higher removes two useless warnings.

regards,
walter

---

 linux-2.6.7-max/net/econet/af_econet.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
net/econet/af_econet.c renamed from net/econet/af_econet.c~fix-warning-af_econet +1 -1
diff -puN net/econet/af_econet.c~fix-warning-af_econet net/econet/af_econet.c
@@ -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
#1 lore raw

In article <[email protected]> (at Mon, 21 Jun 2004 19:09:04 +0200), maximilian attems <[email protected]> says:

Quoted 2 lines

From: <[email protected]>(Walter Harms)
moving the define a bit higher removes two useless warnings.

:

Quoted 1 line

:

net/econet/af_econet.c static int econet_sendmsg(struct kiocb * · line 261

Quoted 6 lines
net/econet/af_econet.c renamed from net/econet/af_econet.c~fix-warning-af_econet +1 -1
 	unsigned char port, cb;
+#ifdef CONFIG_ECONET_NATIVE
 	struct sk_buff *skb;
 	struct ec_cb *eb;
-#ifdef CONFIG_ECONET_NATIVE
 	unsigned short proto = 0;

Already fixed in current bk tree. Thanks.

--yoshfuji