diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-06-10 11:59:11 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2020-06-22 12:34:21 -0400 |
commit | 1c3d69ab5348b661616992206357a3ebf19b1008 (patch) | |
tree | 900c474a156fe4c676560d474d53232804b9cbdb /tools/perf/scripts/python/stackcollapse.py | |
parent | c09cc2c319863f620caf5e723db496eed55f7c7f (diff) |
virtio-mem: silence a static checker warning
Smatch complains that "rc" can be uninitialized if we hit the "break;"
statement on the first iteration through the loop. I suspect that this
can't happen in real life, but returning a zero literal is cleaner and
silence the static checker warning.
Fixes: 5f1f79bbc9e2 ("virtio-mem: Paravirtualized memory hotplug")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200610085911.GC5439@mwanda
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions