diff options
author | David S. Miller <davem@davemloft.net> | 2008-01-18 07:47:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:02:48 -0500 |
commit | 66688ea7c8e5cb3ea987d8945fffd099ce80a299 (patch) | |
tree | 97a47c15eae54a08c03c98d4c822512bc80775c6 | |
parent | d4fa26ff44e31c2636a985e3092e2cd55d8045de (diff) |
[SCTP]: Fix build warning in sctp_sf_do_5_1C_ack().
Reported by Andrew Morton.
net/sctp/sm_statefuns.c: In function 'sctp_sf_do_5_1C_ack':
net/sctp/sm_statefuns.c:484: warning: 'error' may be used uninitialized in this function
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/sctp/sm_statefuns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c index b1267519183b..6e127573594e 100644 --- a/net/sctp/sm_statefuns.c +++ b/net/sctp/sm_statefuns.c | |||
@@ -481,7 +481,7 @@ sctp_disposition_t sctp_sf_do_5_1C_ack(const struct sctp_endpoint *ep, | |||
481 | sctp_init_chunk_t *initchunk; | 481 | sctp_init_chunk_t *initchunk; |
482 | struct sctp_chunk *err_chunk; | 482 | struct sctp_chunk *err_chunk; |
483 | struct sctp_packet *packet; | 483 | struct sctp_packet *packet; |
484 | sctp_error_t error; | 484 | sctp_error_t error = SCTP_ERROR_NO_ERROR; |
485 | 485 | ||
486 | if (!sctp_vtag_verify(chunk, asoc)) | 486 | if (!sctp_vtag_verify(chunk, asoc)) |
487 | return sctp_sf_pdiscard(ep, asoc, type, arg, commands); | 487 | return sctp_sf_pdiscard(ep, asoc, type, arg, commands); |