diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-11-26 03:47:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-26 03:47:35 +0300 |
commit | 2e6a684b8489b21324f314be2bd8d3788a9f6445 (patch) | |
tree | 682c50f7596dee6d7d087ecff9c856c79f543946 /drivers/net/s2io.c | |
parent | 09bb52175bf4d6a46fc8502e76be29206d9a677a (diff) | |
download | linux-2e6a684b8489b21324f314be2bd8d3788a9f6445.tar.xz |
s2io: fix warning in drivers/net/s2io.c
this warning:
drivers/net/s2io.c: In function ‘rx_intr_handler’:
drivers/net/s2io.c:7369: warning: ‘lro’ may be used uninitialized in this function
triggers because GCC does not recognize the (correct) error flow
between:
- s2io_club_tcp_session()and 'lro'
Annotate it.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/s2io.c')
-rw-r--r-- | drivers/net/s2io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c index a4642054a0d0..1b489df80fa6 100644 --- a/drivers/net/s2io.c +++ b/drivers/net/s2io.c @@ -7367,7 +7367,7 @@ static int rx_osm_handler(struct ring_info *ring_data, struct RxD_t * rxdp) int ring_no = ring_data->ring_no; u16 l3_csum, l4_csum; unsigned long long err = rxdp->Control_1 & RXD_T_CODE; - struct lro *lro; + struct lro *uninitialized_var(lro); u8 err_mask; skb->dev = dev; |