diff --git a/lib/vhost/vhost_scsi.c b/lib/vhost/vhost_scsi.c index 8c2f18809..d32eb8216 100644 --- a/lib/vhost/vhost_scsi.c +++ b/lib/vhost/vhost_scsi.c @@ -880,7 +880,7 @@ static int vhost_scsi_dev_remove(struct spdk_vhost_dev *vdev) { struct spdk_vhost_scsi_dev *svdev = to_scsi_dev(vdev); - int rc, i; + int rc = 0, i; assert(svdev != NULL); for (i = 0; i < SPDK_VHOST_SCSI_CTRLR_MAX_DEVS; ++i) {