diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2017-10-17 20:16:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-19 08:33:51 -0400 |
commit | 7a0947e755084b918e33242fd558e55cb443408e (patch) | |
tree | 0369e4a6596d1cec8eeb1decc39653fca9477bb2 | |
parent | be070c77ca805a4f06f135599415195078f0ed68 (diff) |
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); | |||
98 | void dql_reset(struct dql *dql); | 98 | void dql_reset(struct dql *dql); |
99 | 99 | ||
100 | /* Initialize dql state */ | 100 | /* Initialize dql state */ |
101 | int dql_init(struct dql *dql, unsigned hold_time); | 101 | void dql_init(struct dql *dql, unsigned int hold_time); |
102 | 102 | ||
103 | #endif /* _KERNEL_ */ | 103 | #endif /* _KERNEL_ */ |
104 | 104 | ||
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) | |||
127 | } | 127 | } |
128 | EXPORT_SYMBOL(dql_reset); | 128 | EXPORT_SYMBOL(dql_reset); |
129 | 129 | ||
130 | int dql_init(struct dql *dql, unsigned hold_time) | 130 | void dql_init(struct dql *dql, unsigned int hold_time) |
131 | { | 131 | { |
132 | dql->max_limit = DQL_MAX_LIMIT; | 132 | dql->max_limit = DQL_MAX_LIMIT; |
133 | dql->min_limit = 0; | 133 | dql->min_limit = 0; |
134 | dql->slack_hold_time = hold_time; | 134 | dql->slack_hold_time = hold_time; |
135 | dql_reset(dql); | 135 | dql_reset(dql); |
136 | return 0; | ||
137 | } | 136 | } |
138 | EXPORT_SYMBOL(dql_init); | 137 | EXPORT_SYMBOL(dql_init); |