diff options
author | Cristiane Naves <cristianenavescardoso09@gmail.com> | 2019-10-25 19:13:40 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2019-10-30 12:42:47 +0300 |
commit | c1c8058dfb9852eb5adf968b7617a9a4771a08ce (patch) | |
tree | 20a607b240cfb757942d2ab7afdd4f71f84be665 | |
parent | 4f5cafb5cb8471e54afdc9054d973535614f7675 (diff) | |
download | linux-c1c8058dfb9852eb5adf968b7617a9a4771a08ce.tar.xz |
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>
-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) |