[NET]: Fix comparisons of unsigned < 0.
Recent gcc versions emit warnings when unsigned variables are compared < 0 or >= 0. Signed-off-by: Bill Nottingham <notting@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
60468d5b5b
commit
75202e7689
@@ -960,7 +960,7 @@ static const sctp_sm_table_entry_t *sctp_chunk_event_lookup(sctp_cid_t cid,
|
||||
if (state > SCTP_STATE_MAX)
|
||||
return &bug;
|
||||
|
||||
if (cid >= 0 && cid <= SCTP_CID_BASE_MAX)
|
||||
if (cid <= SCTP_CID_BASE_MAX)
|
||||
return &chunk_event_table[cid][state];
|
||||
|
||||
if (sctp_prsctp_enable) {
|
||||
|
Reference in New Issue
Block a user