提交 cc2bbbfd 编写于 作者: L Leon Romanovsky 提交者: Steffen Klassert

xfrm: Remove not-used total variable

Total variable is not used in xfrm_byidx_resize() and can
be safely removed.
Signed-off-by: NLeon Romanovsky <leonro@nvidia.com>
Signed-off-by: NSteffen Klassert <steffen.klassert@secunet.com>
上级 f7fe25a6
...@@ -605,7 +605,7 @@ static void xfrm_bydst_resize(struct net *net, int dir) ...@@ -605,7 +605,7 @@ static void xfrm_bydst_resize(struct net *net, int dir)
xfrm_hash_free(odst, (hmask + 1) * sizeof(struct hlist_head)); 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 hmask = net->xfrm.policy_idx_hmask;
unsigned int nhashmask = xfrm_new_hash_mask(hmask); unsigned int nhashmask = xfrm_new_hash_mask(hmask);
...@@ -683,7 +683,7 @@ static void xfrm_hash_resize(struct work_struct *work) ...@@ -683,7 +683,7 @@ static void xfrm_hash_resize(struct work_struct *work)
xfrm_bydst_resize(net, dir); xfrm_bydst_resize(net, dir);
} }
if (xfrm_byidx_should_resize(net, total)) if (xfrm_byidx_should_resize(net, total))
xfrm_byidx_resize(net, total); xfrm_byidx_resize(net);
mutex_unlock(&hash_resize_mutex); mutex_unlock(&hash_resize_mutex);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册