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>
This commit is contained in:
Tomas Winkler 2017-03-14 14:19:36 +02:00 коммит произвёл Martin K. Petersen
Родитель 046885251a
Коммит 645b8ef594
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -309,8 +309,8 @@ int ufshcd_pltfrm_init(struct platform_device *pdev,
mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
mmio_base = devm_ioremap_resource(dev, mem_res); mmio_base = devm_ioremap_resource(dev, mem_res);
if (IS_ERR(*(void **)&mmio_base)) { if (IS_ERR(mmio_base)) {
err = PTR_ERR(*(void **)&mmio_base); err = PTR_ERR(mmio_base);
goto out; goto out;
} }