aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cassini.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-11-25 19:57:05 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-25 19:57:05 -0500
commitb71e839f9a33abf8634b1eea4875bc8057fe39e2 (patch)
tree8642e8d3c25edeef27fc4679f2e664cf2948e42b /drivers/net/cassini.c
parentb58515be978f9377b9546ae98ad6c8bbc2f93ee1 (diff)
cassini: fix warning in drivers/net/cassini.c
this warning: drivers/net/cassini.c: In function ‘cas_rx_ringN’: drivers/net/cassini.c:2350: warning: ‘skb’ may be used uninitialized in this function triggers because GCC does not recognize the (correct) error flow between cas_rx_process_pkt() and 'skb'. Annotate it. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cassini.c')
-rw-r--r--drivers/net/cassini.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/cassini.c b/drivers/net/cassini.c
index bc84c4ca898..023d205e905 100644
--- a/drivers/net/cassini.c
+++ b/drivers/net/cassini.c
@@ -2347,7 +2347,7 @@ static int cas_rx_ringN(struct cas *cp, int ring, int budget)
2347 drops = 0; 2347 drops = 0;
2348 while (1) { 2348 while (1) {
2349 struct cas_rx_comp *rxc = rxcs + entry; 2349 struct cas_rx_comp *rxc = rxcs + entry;
2350 struct sk_buff *skb; 2350 struct sk_buff *uninitialized_var(skb);
2351 int type, len; 2351 int type, len;
2352 u64 words[4]; 2352 u64 words[4];
2353 int i, dring; 2353 int i, dring;