mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02: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
|
|
@ -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…
Reference in New Issue
Block a user