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:
Родитель
09bb52175b
Коммит
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче