Skip to content

Commit

Permalink
virtio_blk: Delete an unnecessary initialisation in init_vq()
Browse files Browse the repository at this point in the history
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: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
  • Loading branch information
Markus Elfring authored and Michael S. Tsirkin committed Oct 30, 2016
1 parent 668866b commit 2ff9844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/virtio_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ static void virtblk_config_changed(struct virtio_device *vdev)

static int init_vq(struct virtio_blk *vblk)
{
int err = 0;
int err;
int i;
vq_callback_t **callbacks;
const char **names;
Expand Down

0 comments on commit 2ff9844

Please sign in to comment.