summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/virtio-iommu.c
diff options
context:
space:
mode:
authorCristiane Naves <cristianenavescardoso09@gmail.com>2019-10-25 13:13:40 -0300
committerJoerg Roedel <jroedel@suse.de>2019-10-30 10:42:47 +0100
commitc1c8058dfb9852eb5adf968b7617a9a4771a08ce (patch)
tree20a607b240cfb757942d2ab7afdd4f71f84be665 /drivers/iommu/virtio-iommu.c
parent4f5cafb5cb8471e54afdc9054d973535614f7675 (diff)
downloadlinux-c1c8058dfb9852eb5adf968b7617a9a4771a08ce.tar.gz
linux-c1c8058dfb9852eb5adf968b7617a9a4771a08ce.tar.bz2
linux-c1c8058dfb9852eb5adf968b7617a9a4771a08ce.zip
iommu/virtio: Remove unused variable
Remove the variable of return. Issue found by coccicheck(scripts/coccinelle/misc/returnvar.cocci) Signed-off-by: Cristiane Naves <cristianenavescardoso09@gmail.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/virtio-iommu.c')
-rw-r--r--drivers/iommu/virtio-iommu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iommu/virtio-iommu.c b/drivers/iommu/virtio-iommu.c
index 3ea9d7682999..d8f29c8f73f5 100644
--- a/drivers/iommu/virtio-iommu.c
+++ b/drivers/iommu/virtio-iommu.c
@@ -153,7 +153,6 @@ static off_t viommu_get_write_desc_offset(struct viommu_dev *viommu,
*/
static int __viommu_sync_req(struct viommu_dev *viommu)
{
- int ret = 0;
unsigned int len;
size_t write_len;
struct viommu_request *req;
@@ -182,7 +181,7 @@ static int __viommu_sync_req(struct viommu_dev *viommu)
kfree(req);
}
- return ret;
+ return 0;
}
static int viommu_sync_req(struct viommu_dev *viommu)