Skip to content

Commit

Permalink
s2io: fix uninitialized compile warning
Browse files Browse the repository at this point in the history
drivers/net/s2io.c:7559: warning: ‘tcp_len’ may be used uninitialized in this function

Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Shan Wei authored and David S. Miller committed Mar 7, 2011
1 parent 541ac7c commit 06f0c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/s2io.c
Original file line number Diff line number Diff line change
Expand Up @@ -7556,7 +7556,7 @@ static int rx_osm_handler(struct ring_info *ring_data, struct RxD_t * rxdp)
*/
skb->ip_summed = CHECKSUM_UNNECESSARY;
if (ring_data->lro) {
u32 tcp_len;
u32 tcp_len = 0;
u8 *tcp;
int ret = 0;

Expand Down

0 comments on commit 06f0c13

Please sign in to comment.