mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-24 22:17:22 -07:00
hw/virtio/vhost-user:Remove dead assignment in scrub_shadow_regions()
Clang static code analyzer show warning:
hw/virtio/vhost-user.c:606:9: warning: Value stored to 'mr' is never read
mr = vhost_user_get_mr_data(reg->userspace_addr, &offset, &fd);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
Reviewed-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20200827110311.164316-6-kuhn.chenqun@huawei.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
fa71dd531c
commit
8b616beebc
1 changed files with 1 additions and 1 deletions
|
|
@ -603,7 +603,7 @@ static void scrub_shadow_regions(struct vhost_dev *dev,
|
|||
*/
|
||||
for (i = 0; i < dev->mem->nregions; i++) {
|
||||
reg = &dev->mem->regions[i];
|
||||
mr = vhost_user_get_mr_data(reg->userspace_addr, &offset, &fd);
|
||||
vhost_user_get_mr_data(reg->userspace_addr, &offset, &fd);
|
||||
if (fd > 0) {
|
||||
++fd_num;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue