Skip to content
Commit d1a3fe26 authored by David Laight's avatar David Laight Committed by David S. Miller
Browse files

net: sctp: Use pointers (not array indexes) to access sctp_cmd_seq_t.cmds[].



Using pointers into sctp_cmd_seq_t.cmds[] lets the compiler generate much
better code.
Use the last entry first to optimise the overflow check.

Signed-off-by: default avatarDavid Laight <david.laight@aculab.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b9420e1c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment