Skip to contentSkip to conversation

xfrm: Const'ify policy arg and local selector in xfrm_policy_match.

PATCH New David Miller 1 participant 1 message Feb 24, 2011

Subsystems (3)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 13/26 xfrm: Const'ify policy arg and local selector in xfrm_policy_match.

---
 net/xfrm/xfrm_policy.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
net/xfrm/xfrm_policy.c +3 -2
index d097668..9f6c7a7 100644
@@ -869,10 +869,11 @@ EXPORT_SYMBOL(xfrm_policy_walk_done);
  *
  * Returns 0 if policy found, else an -errno.
  */
-static int xfrm_policy_match(struct xfrm_policy *pol, const struct flowi *fl,
+static int xfrm_policy_match(const struct xfrm_policy *pol,
+			     const struct flowi *fl,
 			     u8 type, u16 family, int dir)
 {
-	struct xfrm_selector *sel = &pol->selector;
+	const struct xfrm_selector *sel = &pol->selector;
 	int match, ret = -ESRCH;
 
 	if (pol->family != family ||
Signature · 1 line
1.7.4.1