diff options
author | 2023-04-17 19:09:57 -0400 | |
---|---|---|
committer | 2023-04-18 11:36:24 -0700 | |
commit | 9f5cab173e19201eebeaca853ff664a9a269fed0 (patch) | |
tree | 093f391ee9288063a748750df290390fccf0bc1f /scripts/generate_rust_analyzer.py | |
parent | module: fix building stats for 32-bit targets (diff) | |
download | linux-rng-9f5cab173e19201eebeaca853ff664a9a269fed0.tar.xz linux-rng-9f5cab173e19201eebeaca853ff664a9a269fed0.zip |
module: remove use of uninitialized variable len
clang build reports
kernel/module/stats.c:307:34: error: variable
'len' is uninitialized when used here [-Werror,-Wuninitialized]
len = scnprintf(buf + 0, size - len,
^~~
At the start of this sequence, neither the '+ 0', nor the '- len' are needed.
So remove them and fix using 'len' uninitalized.
Fixes: df3e764d8e5c ("module: add debug stats to help identify memory pressure")
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions