Skip to content

Commit

Permalink
iommu/shmobile: Don't ignore the ipmmu_iommu_init() return value
Browse files Browse the repository at this point in the history
The function can fail, don't ignore its error value.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
  • Loading branch information
Laurent Pinchart committed Apr 17, 2014
1 parent c9eaa44 commit ac1ef1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/iommu/shmobile-ipmmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ static int ipmmu_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, ipmmu);
ipmmu_reg_write(ipmmu, IMCTR1, 0x0); /* disable TLB */
ipmmu_reg_write(ipmmu, IMCTR2, 0x0); /* disable PMB */
ipmmu_iommu_init(ipmmu);
return 0;
return ipmmu_iommu_init(ipmmu);
}

static struct platform_driver ipmmu_driver = {
Expand Down

0 comments on commit ac1ef1f

Please sign in to comment.