dm: Coding style fix: variable initialization

Initialize cid variable in virtio_vhost_vsock_init.

Tracked-On: #7593
Signed-off-by: Yifan Liu <yifan1.liu@intel.com>
This commit is contained in:
Yifan Liu 2022-06-14 06:28:04 +00:00 committed by acrnsi-robot
parent eafc5ff418
commit dc65edec35

View File

@ -239,7 +239,7 @@ virtio_vhost_vsock_init(struct vmctx *ctx, struct pci_vdev *dev, char *opts)
{
struct virtio_vsock *vsock;
int rc;
uint64_t cid;
uint64_t cid = 0;
pthread_mutexattr_t attr;
char *devopts = NULL;
char *tmp = NULL;