Commit 560a1763 authored by Changpeng Liu's avatar Changpeng Liu Committed by Jim Harris
Browse files

bdev/virtio: trivial fixes for correct variable names



The embedded `vdev` is the first element so even without
this fix the program is executed correctly, I happened to
see this so just fix it.

Change-Id: I17ce96803e48f0c6f9e0166e6e72965b62b800ac
Signed-off-by: default avatarChangpeng Liu <changpeliu@tencent.com>
Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/25674


Tested-by: default avatarSPDK Automated Test System <spdkbot@gmail.com>
Reviewed-by: default avatarGangCao <gang.cao@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz@tzawadzki.com>
Reviewed-by: default avatarJim Harris <jim.harris@nvidia.com>
Reviewed-by: default avatarShuhei Matsumoto <smatsumoto@nvidia.com>
parent 47021744
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -539,7 +539,7 @@ virtio_pci_blk_dev_create(const char *name, struct virtio_pci_ctx *pci_ctx)
	if (name == NULL) {
		default_name = spdk_sprintf_alloc("VirtioBlk%"PRIu32, pci_dev_counter++);
		if (default_name == NULL) {
			free(vdev);
			free(bvdev);
			return NULL;
		}
		name = default_name;
+1 −1
Original line number Diff line number Diff line
@@ -297,7 +297,7 @@ virtio_pci_scsi_dev_create(const char *name, struct virtio_pci_ctx *pci_ctx)
	if (name == NULL) {
		default_name = spdk_sprintf_alloc("VirtioScsi%"PRIu32, pci_dev_counter++);
		if (default_name == NULL) {
			free(vdev);
			free(svdev);
			return NULL;
		}
		name = default_name;