浏览代码

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: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Markus Elfring 9 年之前
父节点
当前提交
2ff98449ee
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/block/virtio_blk.c

+ 1 - 1
drivers/block/virtio_blk.c

@@ -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;