Skip to content

Commit

Permalink
sample/mdev/mbochs: remove set but not used variable 'mdev_state'
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Alex Williamson <[email protected]>
YueHaibing authored and awilliam committed Jul 2, 2019
1 parent e66e02c commit b46c820
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions samples/vfio-mdev/mbochs.c
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit b46c820

Please sign in to comment.