diff options
author | Cristiane Naves <cristianenavescardoso09@gmail.com> | 2019-10-25 18:13:40 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2019-10-30 10:42:47 +0100 |
commit | c1c8058dfb9852eb5adf968b7617a9a4771a08ce (patch) | |
tree | 20a607b240cfb757942d2ab7afdd4f71f84be665 /drivers/iommu/virtio-iommu.c | |
parent | Linux 5.4-rc3 (diff) | |
download | linux-c1c8058dfb9852eb5adf968b7617a9a4771a08ce.tar.xz 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.c | 3 |
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) |