Skip to content

Commit b46c820

Browse files
YueHaibingAlex Williamson
authored andcommitted
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 104c740 ("vfio: add edid support to mbochs sample driver") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
1 parent e66e02c commit b46c820

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎samples/vfio-mdev/mbochs.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,9 +1185,6 @@ static long mbochs_ioctl(struct mdev_device *mdev, unsigned int cmd,
11851185
{
11861186
int ret = 0;
11871187
unsigned long minsz, outsz;
1188-
struct mdev_state *mdev_state;
1189-
1190-
mdev_state = mdev_get_drvdata(mdev);
11911188

11921189
switch (cmd) {
11931190
case VFIO_DEVICE_GET_INFO:

0 commit comments

Comments
 (0)