* [PATCH] net/niu: Fix compile warnings
@ 2008-07-28 14:24 Takashi Iwai
0 siblings, 0 replies; only message in thread
From: Takashi Iwai @ 2008-07-28 14:24 UTC (permalink / raw)
To: David Miller; +Cc: akpm, linux-kernel
Fix the wrong return value from niu_ethflow_to_class().
drivers/net/niu.c: In function 'niu_get_hash_opts':
drivers/net/niu.c:6481: warning: 'class' may be used uninitialized in this function
drivers/net/niu.c: In function 'niu_set_hash_opts':
drivers/net/niu.c:6501: warning: 'class' may be used uninitialized in this function
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
diff --git a/drivers/net/niu.c b/drivers/net/niu.c
index 8ee7d7b..e4765b7 100644
--- a/drivers/net/niu.c
+++ b/drivers/net/niu.c
@@ -6417,7 +6417,7 @@ static int niu_ethflow_to_class(int flow_type, u64 *class)
*class = CLASS_CODE_SCTP_IPV6;
break;
default:
- return -1;
+ return 0;
}
return 1;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-28 14:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-28 14:24 [PATCH] net/niu: Fix compile warnings Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®