summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-07-02 19:38:10 +0200
committerAlex Williamson <alex.williamson@redhat.com>2019-07-02 19:44:15 +0200
commitb46c820f8f5a03619f21fc4ed2e42848017aefcd (patch)
tree4cad68a3c0ad2a06d5749fb9f4b715fe0870a989 /samples
parentvfio: vfio_pci_nvlink2: use a vma helper function (diff)
downloadlinux-b46c820f8f5a03619f21fc4ed2e42848017aefcd.tar.xz
linux-b46c820f8f5a03619f21fc4ed2e42848017aefcd.zip
sample/mdev/mbochs: remove set but not used variable 'mdev_state'
Fixes gcc '-Wunused-but-set-variable' warning: samples/vfio-mdev/mbochs.c: In function mbochs_ioctl: samples/vfio-mdev/mbochs.c:1188:21: warning: variable mdev_state set but not used [-Wunused-but-set-variable] It's not used any more since commit 104c7405a64d ("vfio: add edid support to mbochs sample driver") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'samples')
-rw-r--r--samples/vfio-mdev/mbochs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/samples/vfio-mdev/mbochs.c b/samples/vfio-mdev/mbochs.c
index b038aa9f5a70..ac5c8c17b1ff 100644
--- a/samples/vfio-mdev/mbochs.c
+++ b/samples/vfio-mdev/mbochs.c
@@ -1185,9 +1185,6 @@ static long mbochs_ioctl(struct mdev_device *mdev, unsigned int cmd,
{
int ret = 0;
unsigned long minsz, outsz;
- struct mdev_state *mdev_state;
-
- mdev_state = mdev_get_drvdata(mdev);
switch (cmd) {
case VFIO_DEVICE_GET_INFO: