driver: block: Fix gcc compiler issue

Fix kernel compilation failure because of id uninitialized in
vs_block_client_get_blkdev_id function.

Change-Id: I51069102e7a74c9e1ba5ee7f82b0a91cfd2dbf69
Signed-off-by: Jiaxing Shi <jiaxsh@codeaurora.org>
This commit is contained in:
Jiaxing Shi 2019-12-10 11:08:03 +08:00
parent b318a6e046
commit 20f2647816

View file

@ -423,7 +423,7 @@ vs_block_client_make_request(struct request_queue *q, struct bio *bio)
static int vs_block_client_get_blkdev_id(struct block_client *client)
{
int id;
int id = 0;
int ret;
retry: