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@xxxxxxxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-sctp" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html