Skip to content
Commit 9f5cab17 authored by Tom Rix's avatar Tom Rix Committed by Luis Chamberlain
Browse files

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: df3e764d ("module: add debug stats to help identify memory pressure")
Signed-off-by: default avatarTom Rix <trix@redhat.com>
Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
parent 719ccd80
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment