diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2017-10-17 17:16:52 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-19 13:33:51 +0100 |
commit | 7a0947e755084b918e33242fd558e55cb443408e (patch) | |
tree | 0369e4a6596d1cec8eeb1decc39653fca9477bb2 | |
parent | be070c77ca805a4f06f135599415195078f0ed68 (diff) | |
download | linux-stable-7a0947e755084b918e33242fd558e55cb443408e.tar.gz linux-stable-7a0947e755084b918e33242fd558e55cb443408e.tar.bz2 linux-stable-7a0947e755084b918e33242fd558e55cb443408e.zip |
dql: make dql_init return void
dql_init always returned 0, and the only place that uses it
in network core code didn't care about the return value anyway.
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Acked-by: Hiroaki SHIMODA <shimoda.hiroaki@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/linux/dynamic_queue_limits.h | 2 | ||||
-rw-r--r-- | lib/dynamic_queue_limits.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/dynamic_queue_limits.h b/include/linux/dynamic_queue_limits.h index a4be70398ce1..f69f98541953 100644 --- a/include/linux/dynamic_queue_limits.h +++ b/include/linux/dynamic_queue_limits.h @@ -98,7 +98,7 @@ void dql_completed(struct dql *dql, unsigned int count); void dql_reset(struct dql *dql); /* Initialize dql state */ -int dql_init(struct dql *dql, unsigned hold_time); +void dql_init(struct dql *dql, unsigned int hold_time); #endif /* _KERNEL_ */ diff --git a/lib/dynamic_queue_limits.c b/lib/dynamic_queue_limits.c index f346715e2255..dbe61c4c2a97 100644 --- a/lib/dynamic_queue_limits.c +++ b/lib/dynamic_queue_limits.c @@ -127,12 +127,11 @@ void dql_reset(struct dql *dql) } EXPORT_SYMBOL(dql_reset); -int dql_init(struct dql *dql, unsigned hold_time) +void dql_init(struct dql *dql, unsigned int hold_time) { dql->max_limit = DQL_MAX_LIMIT; dql->min_limit = 0; dql->slack_hold_time = hold_time; dql_reset(dql); - return 0; } EXPORT_SYMBOL(dql_init); |