diff options
| author | Breno Leitao <[email protected]> | 2024-01-22 18:19:55 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-01-24 01:22:23 +0000 |
| commit | 20df28fb5bd8081a05ec34542bd45e4f3feeced5 (patch) | |
| tree | 98ce133196d977d492024f0280bcbaa1568443ae /net/unix/garbage.c | |
| parent | net/ipv6: Remove unnecessary pr_debug() logs (diff) | |
| download | kernel-20df28fb5bd8081a05ec34542bd45e4f3feeced5.tar.gz kernel-20df28fb5bd8081a05ec34542bd45e4f3feeced5.zip | |
net/ipv6: resolve warning in ip6_fib.c
In some configurations, the 'iter' variable in function
fib6_repair_tree() is unused, resulting the following warning when
compiled with W=1.
net/ipv6/ip6_fib.c:1781:6: warning: variable 'iter' set but not used [-Wunused-but-set-variable]
1781 | int iter = 0;
| ^
It is unclear what is the advantage of this RT6_TRACE() macro[1], since
users can control pr_debug() in runtime, which is better than at
compilation time. pr_debug() has no overhead when disabled.
Remove the RT6_TRACE() in favor of simple pr_debug() helpers.
[1] Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Breno Leitao <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
