Fixes compilation warning:
drivers/vhost/vsock.c: In function ‘vhost_vsock_reset_owner’:
drivers/vhost/vsock.c:846:16: warning: unused variable ‘i’ [-Wunused-variable]
846 | size_t i;
| ^
Fixes: ad35221ad1341 ("vhost/vsock: add VHOST_RESET_OWNER ioctl")
Signed-off-by: Pavel Tikhomirov <[email protected]>
Feature: vhost-vsock: VHOST_RESET_OWNER ioctl
---
drivers/vhost/vsock.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/vhost/vsock.c b/drivers/vhost/vsock.c
index 3654fa0fd5849..36750e163052f 100644
--- a/drivers/vhost/vsock.c
+++ b/drivers/vhost/vsock.c
@@ -843,7 +843,6 @@ static int vhost_vsock_reset_owner(struct vhost_vsock
*vsock)
{
struct vhost_iotlb *umem;
long err;
- size_t i;
mutex_lock(&vsock->dev.mutex);
err = vhost_dev_check_owner(&vsock->dev);
--
2.48.1
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel