[<prev] [next>] [day] [month] [year] [list]
Message-ID: <s5hr69eqe7g.wl%tiwai@suse.de>
Date: Mon, 28 Jul 2008 16:24:19 +0200
From: Takashi Iwai <tiwai@...e.de>
To: David Miller <davem@...emloft.net>
Cc: akpm@...ux-foundation.org, linux-kernel@...r.kernel.org
Subject: [PATCH] net/niu: Fix compile warnings
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@...e.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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists