diff options
author | 2017-05-18 10:34:31 +0300 | |
---|---|---|
committer | 2017-06-13 09:24:21 -0600 | |
commit | 7b3a10df1d4bd8a83934897442370221b4cd631b (patch) | |
tree | 9555481b25e123021421d23d97ca1669d4ca977e /drivers/vfio | |
parent | vfio/pci: Add Intel XXV710 to hidden INTx devices (diff) | |
download | linux-7b3a10df1d4bd8a83934897442370221b4cd631b.tar.gz linux-7b3a10df1d4bd8a83934897442370221b4cd631b.tar.bz2 linux-7b3a10df1d4bd8a83934897442370221b4cd631b.zip |
vfio: Use ERR_CAST() instead of open coding it
It's a small cleanup to use ERR_CAST() here.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio')
-rw-r--r-- | drivers/vfio/vfio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vfio/vfio.c b/drivers/vfio/vfio.c index 561084ab387f..6a49485eb49d 100644 --- a/drivers/vfio/vfio.c +++ b/drivers/vfio/vfio.c @@ -382,7 +382,7 @@ static struct vfio_group *vfio_create_group(struct iommu_group *iommu_group) if (IS_ERR(dev)) { vfio_free_group_minor(minor); vfio_group_unlock_and_free(group); - return (struct vfio_group *)dev; /* ERR_PTR */ + return ERR_CAST(dev); } group->minor = minor; |