mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
spapr_vscsi: Set uninitialized variable
cppcheck reports this error: hw/spapr_vscsi.c:274: error: Uninitialized variable: rc If llen == 0, rc was indeed used without being initialized. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
64a4d100b5
commit
8804f57b53
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ static int vscsi_srp_direct_data(VSCSIState *s, vscsi_req *req,
|
|||
{
|
||||
struct srp_direct_buf *md = req->cur_desc;
|
||||
uint32_t llen;
|
||||
int rc;
|
||||
int rc = 0;
|
||||
|
||||
dprintf("VSCSI: direct segment 0x%x bytes, va=0x%llx desc len=0x%x\n",
|
||||
len, (unsigned long long)md->va, md->len);
|
||||
|
|
Loading…
Reference in a new issue