mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 09:02:00 +00:00
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>
This commit is contained in:
parent
09bb52175b
commit
2e6a684b84
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user