Skip to content
Snippets Groups Projects
Commit 2ff98449 authored by Markus Elfring's avatar Markus Elfring Committed by Michael S. Tsirkin
Browse files

virtio_blk: Delete an unnecessary initialisation in init_vq()


The local variable "err" will be set to an appropriate value
by a following statement.
Thus omit the explicit initialisation at the beginning.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 668866b6
No related branches found
No related tags found
No related merge requests found
...@@ -376,7 +376,7 @@ static void virtblk_config_changed(struct virtio_device *vdev) ...@@ -376,7 +376,7 @@ static void virtblk_config_changed(struct virtio_device *vdev)
static int init_vq(struct virtio_blk *vblk) static int init_vq(struct virtio_blk *vblk)
{ {
int err = 0; int err;
int i; int i;
vq_callback_t **callbacks; vq_callback_t **callbacks;
const char **names; const char **names;
......
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