* [PATCH] s2io: fix uninitialized compile warning
@ 2011-03-04 11:23 Shan Wei
2011-03-07 23:49 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Shan Wei @ 2011-03-04 11:23 UTC (permalink / raw)
To: ramkrishna.vepa, sivakumar.subramani, sreenivasa.honnur,
jon.mason, netdev
drivers/net/s2io.c:7559: warning: ‘tcp_len’ may be used uninitialized in this function
Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
---
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 39c17ce..2ad6364 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;
--
1.6.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] s2io: fix uninitialized compile warning
2011-03-04 11:23 [PATCH] s2io: fix uninitialized compile warning Shan Wei
@ 2011-03-07 23:49 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-03-07 23:49 UTC (permalink / raw)
To: shanwei
Cc: ramkrishna.vepa, sivakumar.subramani, sreenivasa.honnur,
jon.mason, netdev
From: Shan Wei <shanwei@cn.fujitsu.com>
Date: Fri, 04 Mar 2011 19:23:58 +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>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-07 23:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-04 11:23 [PATCH] s2io: fix uninitialized compile warning Shan Wei
2011-03-07 23:49 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).