[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200620031150.152324-1-jingxiangfeng@huawei.com>
Date: Sat, 20 Jun 2020 11:11:50 +0800
From: Jing Xiangfeng <jingxiangfeng@...wei.com>
To: <achim_leubner@...ptec.com>, <jejb@...ux.ibm.com>,
<martin.petersen@...cle.com>
CC: <linux-scsi@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<jingxiangfeng@...wei.com>
Subject: [PATCH] scsi: gdth: remove unnecessary iounmap()
When initialization of ioremap() fails, it is not needed to do
iounmap(). Remove this iounmap.
Signed-off-by: Jing Xiangfeng <jingxiangfeng@...wei.com>
---
drivers/scsi/gdth.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c
index fe03410268e6..8f077d316e8b 100644
--- a/drivers/scsi/gdth.c
+++ b/drivers/scsi/gdth.c
@@ -639,7 +639,6 @@ static int gdth_init_pci(struct pci_dev *pdev, gdth_pci_str *pcistr,
ha->brd = ioremap(pcistr->dpmem, sizeof(gdt6c_dpram_str));
if (ha->brd == NULL) {
printk("GDT-PCI: Initialization error (DPMEM remap error)\n");
- iounmap(ha->brd);
return 0;
}
/* check and reset interface area */
--
2.17.1
Powered by blists - more mailing lists