Skip to content

Commit

Permalink
iommu/virtio: Remove unused variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cristiane Naves authored and Joerg Roedel committed Oct 30, 2019
1 parent 4f5cafb commit c1c8058
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/iommu/virtio-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit c1c8058

Please sign in to comment.