提交 95b3c9cf 编写于 作者: S Stefano Garzarella 提交者: Laurent Vivier

virtio-blk: remove duplicate definition of VirtIOBlock *s pointer

VirtIOBlock *s is already defined and initialized with req->dev
on top of virtio_blk_handle_request(), so we can remove it from
the code block of VIRTIO_BLK_T_GET_ID case.
Signed-off-by: NStefano Garzarella <sgarzare@redhat.com>
Reviewed-by: NThomas Huth <thuth@redhat.com>
Message-Id: <20190130095231.42081-1-sgarzare@redhat.com>
Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
上级 36f1f0d2
......@@ -569,8 +569,6 @@ static int virtio_blk_handle_request(VirtIOBlockReq *req, MultiReqBuffer *mrb)
break;
case VIRTIO_BLK_T_GET_ID:
{
VirtIOBlock *s = req->dev;
/*
* NB: per existing s/n string convention the string is
* terminated by '\0' only when shorter than buffer.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册