提交 96750162 编写于 作者: J Jarek Poplawski 提交者: David S. Miller

[NET] gen_estimator: gen_replace_estimator() cosmetic changes

White spaces etc. are changed in gen_replace_estimator() to make it
similar to others in a file.
Signed-off-by: NJarek Poplawski <jarkao2@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 72348a42
...@@ -241,7 +241,7 @@ void gen_kill_estimator(struct gnet_stats_basic *bstats, ...@@ -241,7 +241,7 @@ void gen_kill_estimator(struct gnet_stats_basic *bstats,
} }
/** /**
* gen_replace_estimator - replace rate estimator configruation * gen_replace_estimator - replace rate estimator configuration
* @bstats: basic statistics * @bstats: basic statistics
* @rate_est: rate estimator statistics * @rate_est: rate estimator statistics
* @stats_lock: statistics lock * @stats_lock: statistics lock
...@@ -252,10 +252,9 @@ void gen_kill_estimator(struct gnet_stats_basic *bstats, ...@@ -252,10 +252,9 @@ void gen_kill_estimator(struct gnet_stats_basic *bstats,
* *
* Returns 0 on success or a negative error code. * Returns 0 on success or a negative error code.
*/ */
int int gen_replace_estimator(struct gnet_stats_basic *bstats,
gen_replace_estimator(struct gnet_stats_basic *bstats, struct gnet_stats_rate_est *rate_est,
struct gnet_stats_rate_est *rate_est, spinlock_t *stats_lock, spinlock_t *stats_lock, struct rtattr *opt)
struct rtattr *opt)
{ {
gen_kill_estimator(bstats, rate_est); gen_kill_estimator(bstats, rate_est);
return gen_new_estimator(bstats, rate_est, stats_lock, opt); return gen_new_estimator(bstats, rate_est, stats_lock, opt);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册