* [PATCH] Remove unused parameter of xfrm_gen_index()
@ 2008-11-12 13:10 Arnaud Ebalard
2008-11-13 2:01 ` Herbert Xu
0 siblings, 1 reply; 3+ messages in thread
From: Arnaud Ebalard @ 2008-11-12 13:10 UTC (permalink / raw)
To: David Miller; +Cc: Herbert Xu, netdev
Hi David,
In commit 2518c7c2b3d7f0a6b302b4efe17c911f8dd4049f, the last use of
xfrm_gen_policy() first argument was removed, but the argument was
left behind in the prototype. Patch is against current net-2.6.
Signed-off-by: Arnaud Ebalard <arno@natisbad.org>
---
net/xfrm/xfrm_policy.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index 058f04f..959958c 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -521,7 +521,7 @@ static DECLARE_WORK(xfrm_hash_work, xfrm_hash_resize);
/* Generate new index... KAME seems to generate them ordered by cost
* of an absolute inpredictability of ordering of rules. This will not pass. */
-static u32 xfrm_gen_index(u8 type, int dir)
+static u32 xfrm_gen_index(int dir)
{
static u32 idx_generator;
@@ -608,7 +608,7 @@ int xfrm_policy_insert(int dir, struct xfrm_policy *policy, int excl)
list_del(&delpol->walk.all);
xfrm_policy_count[dir]--;
}
- policy->index = delpol ? delpol->index : xfrm_gen_index(policy->type, dir);
+ policy->index = delpol ? delpol->index : xfrm_gen_index(dir);
hlist_add_head(&policy->byidx, xfrm_policy_byidx+idx_hash(policy->index));
policy->curlft.add_time = get_seconds();
policy->curlft.use_time = 0;
@@ -1138,7 +1138,7 @@ int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol)
sk->sk_policy[dir] = pol;
if (pol) {
pol->curlft.add_time = get_seconds();
- pol->index = xfrm_gen_index(pol->type, XFRM_POLICY_MAX+dir);
+ pol->index = xfrm_gen_index(XFRM_POLICY_MAX+dir);
__xfrm_policy_link(pol, XFRM_POLICY_MAX+dir);
}
if (old_pol)
--
1.5.6.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Remove unused parameter of xfrm_gen_index()
2008-11-12 13:10 [PATCH] Remove unused parameter of xfrm_gen_index() Arnaud Ebalard
@ 2008-11-13 2:01 ` Herbert Xu
2008-11-13 7:28 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Herbert Xu @ 2008-11-13 2:01 UTC (permalink / raw)
To: Arnaud Ebalard; +Cc: David Miller, netdev
On Wed, Nov 12, 2008 at 02:10:03PM +0100, Arnaud Ebalard wrote:
> Hi David,
>
> In commit 2518c7c2b3d7f0a6b302b4efe17c911f8dd4049f, the last use of
> xfrm_gen_policy() first argument was removed, but the argument was
> left behind in the prototype. Patch is against current net-2.6.
>
> Signed-off-by: Arnaud Ebalard <arno@natisbad.org>
Looks good to me.
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Remove unused parameter of xfrm_gen_index()
2008-11-13 2:01 ` Herbert Xu
@ 2008-11-13 7:28 ` David Miller
0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2008-11-13 7:28 UTC (permalink / raw)
To: herbert; +Cc: arno, netdev
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: Thu, 13 Nov 2008 10:01:02 +0800
> On Wed, Nov 12, 2008 at 02:10:03PM +0100, Arnaud Ebalard wrote:
> > Hi David,
> >
> > In commit 2518c7c2b3d7f0a6b302b4efe17c911f8dd4049f, the last use of
> > xfrm_gen_policy() first argument was removed, but the argument was
> > left behind in the prototype. Patch is against current net-2.6.
> >
> > Signed-off-by: Arnaud Ebalard <arno@natisbad.org>
>
> Looks good to me.
>
> Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Applied, thanks everyone.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-11-13 7:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-12 13:10 [PATCH] Remove unused parameter of xfrm_gen_index() Arnaud Ebalard
2008-11-13 2:01 ` Herbert Xu
2008-11-13 7:28 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).