s2io: fix uninitialized compile warning
authorShan Wei <shanwei@cn.fujitsu.com>
Fri, 4 Mar 2011 01:23:58 +0000 (01:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Mar 2011 23:49:31 +0000 (15:49 -0800)
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>
drivers/net/s2io.c

index 39c17cecb8b98f5258bd9245ad451b14d6b2473b..2ad6364103ea45db5c0f8094172d1a51c0401479 100644 (file)
@@ -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;