From: Shan Wei <shanwei@cn.fujitsu.com>
To: Vlad Yasevich <vladislav.yasevich@hp.com>,
David Miller <davem@davemloft.net>,
Network-Maillist <netdev@vger.kernel.org>,
SCTP-Maillist <linux-sctp@vger.kernel.org>
Subject: [PATCH net-next] sctp: fix compile warnings in sctp_tsnmap_num_gabs
Date: Sun, 20 Feb 2011 07:57:26 +0000 [thread overview]
Message-ID: <4D60C966.2000302@cn.fujitsu.com> (raw)
net/sctp/tsnmap.c: In function ‘sctp_tsnmap_num_gabs’:
net/sctp/tsnmap.c:347: warning: ‘start’ may be used uninitialized in this function
net/sctp/tsnmap.c:347: warning: ‘end’ may be used uninitialized in this function
Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
---
net/sctp/tsnmap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/sctp/tsnmap.c b/net/sctp/tsnmap.c
index 747d541..f1e40ce 100644
--- a/net/sctp/tsnmap.c
+++ b/net/sctp/tsnmap.c
@@ -344,7 +344,7 @@ __u16 sctp_tsnmap_num_gabs(struct sctp_tsnmap *map,
/* Refresh the gap ack information. */
if (sctp_tsnmap_has_gap(map)) {
- __u16 start, end;
+ __u16 start = 0, end = 0;
sctp_tsnmap_iter_init(map, &iter);
while (sctp_tsnmap_next_gap_ack(map, &iter,
&start,
--
1.6.3.3
WARNING: multiple messages have this Message-ID (diff)
From: Shan Wei <shanwei@cn.fujitsu.com>
To: Vlad Yasevich <vladislav.yasevich@hp.com>,
David Miller <davem@davemloft.net>,
Network-Maillist <netdev@vger.kernel.org>,
SCTP-Maillist <linux-sctp@vger.kernel.org>
Subject: [PATCH net-next] sctp: fix compile warnings in sctp_tsnmap_num_gabs
Date: Sun, 20 Feb 2011 15:57:26 +0800 [thread overview]
Message-ID: <4D60C966.2000302@cn.fujitsu.com> (raw)
net/sctp/tsnmap.c: In function ‘sctp_tsnmap_num_gabs’:
net/sctp/tsnmap.c:347: warning: ‘start’ may be used uninitialized in this function
net/sctp/tsnmap.c:347: warning: ‘end’ may be used uninitialized in this function
Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
---
net/sctp/tsnmap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/sctp/tsnmap.c b/net/sctp/tsnmap.c
index 747d541..f1e40ce 100644
--- a/net/sctp/tsnmap.c
+++ b/net/sctp/tsnmap.c
@@ -344,7 +344,7 @@ __u16 sctp_tsnmap_num_gabs(struct sctp_tsnmap *map,
/* Refresh the gap ack information. */
if (sctp_tsnmap_has_gap(map)) {
- __u16 start, end;
+ __u16 start = 0, end = 0;
sctp_tsnmap_iter_init(map, &iter);
while (sctp_tsnmap_next_gap_ack(map, &iter,
&start,
--
1.6.3.3
next reply other threads:[~2011-02-20 7:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-20 7:57 Shan Wei [this message]
2011-02-20 7:57 ` [PATCH net-next] sctp: fix compile warnings in sctp_tsnmap_num_gabs Shan Wei
2011-02-20 19:10 ` [PATCH net-next] sctp: fix compile warnings in David Miller
2011-02-20 19:10 ` [PATCH net-next] sctp: fix compile warnings in sctp_tsnmap_num_gabs 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=4D60C966.2000302@cn.fujitsu.com \
--to=shanwei@cn.fujitsu.com \
--cc=davem@davemloft.net \
--cc=linux-sctp@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=vladislav.yasevich@hp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.