summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2017-03-14 14:19:36 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2017-03-15 19:03:38 -0400
commit645b8ef5943f95b74240568105ce2be21c6640b4 (patch)
treef8f4f799ac508ea2bdf0bfb3ed7355f36ea9a0a3 /drivers/scsi
parent046885251ae24b0fa1adbc5e3ca4a4bc9930c1f3 (diff)
downloadlinux-stable-645b8ef5943f95b74240568105ce2be21c6640b4.tar.gz
linux-stable-645b8ef5943f95b74240568105ce2be21c6640b4.tar.bz2
linux-stable-645b8ef5943f95b74240568105ce2be21c6640b4.zip
scsi: ufshcd-platform: remove the useless cast in ERR_PTR/IS_ERR
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>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/ufs/ufshcd-pltfrm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/ufs/ufshcd-pltfrm.c b/drivers/scsi/ufs/ufshcd-pltfrm.c
index a72a4ba78125..8e5e6c04c035 100644
--- a/drivers/scsi/ufs/ufshcd-pltfrm.c
+++ b/drivers/scsi/ufs/ufshcd-pltfrm.c
@@ -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;
}