mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-16 20:14:24 +00:00
xfrm: Remove not-used total variable
Total variable is not used in xfrm_byidx_resize() and can be safely removed. Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
This commit is contained in:
parent
f7fe25a6f0
commit
cc2bbbfd9a
1 changed files with 2 additions and 2 deletions
|
@ -605,7 +605,7 @@ static void xfrm_bydst_resize(struct net *net, int dir)
|
|||
xfrm_hash_free(odst, (hmask + 1) * sizeof(struct hlist_head));
|
||||
}
|
||||
|
||||
static void xfrm_byidx_resize(struct net *net, int total)
|
||||
static void xfrm_byidx_resize(struct net *net)
|
||||
{
|
||||
unsigned int hmask = net->xfrm.policy_idx_hmask;
|
||||
unsigned int nhashmask = xfrm_new_hash_mask(hmask);
|
||||
|
@ -683,7 +683,7 @@ static void xfrm_hash_resize(struct work_struct *work)
|
|||
xfrm_bydst_resize(net, dir);
|
||||
}
|
||||
if (xfrm_byidx_should_resize(net, total))
|
||||
xfrm_byidx_resize(net, total);
|
||||
xfrm_byidx_resize(net);
|
||||
|
||||
mutex_unlock(&hash_resize_mutex);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue