Skip to content

Commit

Permalink
scsi: ufshcd-platform: remove the useless cast in ERR_PTR/IS_ERR
Browse files Browse the repository at this point in the history
IS_ERR and ERR_PTR already forcefully cast their argument, hence there
is no need for additional (complex) casting.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
  • Loading branch information
Tomas Winkler authored and Martin K. Petersen committed Mar 15, 2017
1 parent 0468852 commit 645b8ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/scsi/ufs/ufshcd-pltfrm.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ int ufshcd_pltfrm_init(struct platform_device *pdev,

mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
mmio_base = devm_ioremap_resource(dev, mem_res);
if (IS_ERR(*(void **)&mmio_base)) {
err = PTR_ERR(*(void **)&mmio_base);
if (IS_ERR(mmio_base)) {
err = PTR_ERR(mmio_base);
goto out;
}

Expand Down

0 comments on commit 645b8ef

Please sign in to comment.