From: Shan Wei <shanwei@cn•fujitsu.com>
To: ramkrishna.vepa@exar•com, sivakumar.subramani@exar•com,
sreenivasa.honnur@exar•com, jon.mason@exar•com,
netdev <netdev@vger•kernel.org>
Subject: [PATCH] s2io: fix uninitialized compile warning
Date: Fri, 04 Mar 2011 19:23:58 +0800 [thread overview]
Message-ID: <4D70CBCE.4090306@cn.fujitsu.com> (raw)
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
next reply other threads:[~2011-03-04 11:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-04 11:23 Shan Wei [this message]
2011-03-07 23:49 ` [PATCH] s2io: fix uninitialized compile warning David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D70CBCE.4090306@cn.fujitsu.com \
--to=shanwei@cn$(echo .)fujitsu.com \
--cc=jon.mason@exar$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=ramkrishna.vepa@exar$(echo .)com \
--cc=sivakumar.subramani@exar$(echo .)com \
--cc=sreenivasa.honnur@exar$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox