]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
vfio/mdev: don't warn if ->request is not set
authorChristoph Hellwig <hch@lst.de>
Mon, 26 Jul 2021 14:35:24 +0000 (16:35 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 2 Aug 2021 21:23:43 +0000 (15:23 -0600)
Only a single driver actually sets the ->request method, so don't print
a scary warning if it isn't.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20210726143524.155779-3-hch@lst.de
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/mdev/mdev_core.c

index b16606ebafa129b67432d0eff737a49fbc5f0f1d..b314101237fe224de97632f94b0637db5d32c5be 100644 (file)
@@ -138,10 +138,6 @@ int mdev_register_device(struct device *dev, const struct mdev_parent_ops *ops)
        if (!dev)
                return -EINVAL;
 
-       /* Not mandatory, but its absence could be a problem */
-       if (!ops->request)
-               dev_info(dev, "Driver cannot be asked to release device\n");
-
        mutex_lock(&parent_list_lock);
 
        /* Check for duplicate */