aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpiutil.c
diff options
context:
space:
mode:
authorBreno Leitao <[email protected]>2024-01-22 10:19:55 -0800
committerJakub Kicinski <[email protected]>2024-01-23 17:22:23 -0800
commit20df28fb5bd8081a05ec34542bd45e4f3feeced5 (patch)
tree98ce133196d977d492024f0280bcbaa1568443ae /lib/crypto/mpi/mpiutil.c
parenta6348a7104e0dac7b9b4b7042c3c8c36b81d71e7 (diff)
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 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions