summaryrefslogtreecommitdiffstats
path: root/tools/perf/perf.c
diff options
context:
space:
mode:
authorDan Carpenter2017-01-12 19:45:04 +0100
committerMichael S. Tsirkin2017-01-19 22:46:30 +0100
commit532e15af105a0b86211f515bd5fec1f4cdd9f27b (patch)
tree7c415c34879a27efbbbb4862f3fdbd2ebfcac42e /tools/perf/perf.c
parentvhost: scsi: constify target_core_fabric_ops structures (diff)
downloadkernel-qcow2-linux-532e15af105a0b86211f515bd5fec1f4cdd9f27b.tar.gz
kernel-qcow2-linux-532e15af105a0b86211f515bd5fec1f4cdd9f27b.tar.xz
kernel-qcow2-linux-532e15af105a0b86211f515bd5fec1f4cdd9f27b.zip
vhost/scsi: silence uninitialized variable warning
This is to silence an uninitialized variable warning in debug output. The problem is this line: pr_debug("vhost_get_vq_desc: head: %d, out: %u in: %u\n", head, out, in); If "head == vq->num" is true on the first iteration then "out" and "in" aren't initialized. We handle that a few lines after the printk. I was tempted to just delete the pr_debug() but I decided to just initialize them to zero instead. Also checkpatch.pl complains if variables are declared as just "unsigned" without the "int". Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/perf/perf.c')
0 files changed, 0 insertions, 0 deletions