Re: [patch] vhost/scsi: silence uninitialized variable warning

2017-01-12 Thread Jason Wang
On 2017年01月13日 02:45, Dan Carpenter wrote: 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

[patch] vhost/scsi: silence uninitialized variable warning

2017-01-12 Thread Dan Carpenter
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