diff options
author | Shan Wei <shanwei@cn.fujitsu.com> | 2011-03-04 02:23:58 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-08 00:49:31 +0100 |
commit | 06f0c1392c20d708ffae067fdcad604882e19200 (patch) | |
tree | f79927f13018580019caf553ecdaae74f31969fd /drivers/net/s2io.c | |
parent | bonding: COW before overwriting the destination MAC address (diff) | |
download | linux-06f0c1392c20d708ffae067fdcad604882e19200.tar.xz linux-06f0c1392c20d708ffae067fdcad604882e19200.zip |
s2io: fix uninitialized compile warning
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>
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 39c17cecb8b9..2ad6364103ea 100644 --- a/drivers/net/s2io.c +++ b/drivers/net/s2io.c @@ -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; |