mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 06:33:07 +00:00
xfrm: Const'ify sec_path arg to secpath_has_nontransport.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
22cccb7e03
commit
9a7386ec99
1 changed files with 1 additions and 1 deletions
|
@ -1994,7 +1994,7 @@ int __xfrm_decode_session(struct sk_buff *skb, struct flowi *fl,
|
|||
}
|
||||
EXPORT_SYMBOL(__xfrm_decode_session);
|
||||
|
||||
static inline int secpath_has_nontransport(struct sec_path *sp, int k, int *idxp)
|
||||
static inline int secpath_has_nontransport(const struct sec_path *sp, int k, int *idxp)
|
||||
{
|
||||
for (; k < sp->len; k++) {
|
||||
if (sp->xvec[k]->props.mode != XFRM_MODE_TRANSPORT) {
|
||||
|
|
Loading…
Reference in a new issue