lkml.org 
[lkml]   [2015]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/1] scsi: remove check around pci_dev_put
Date
pci_dev_put checks for NULL Pointer itself.

Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
---
drivers/scsi/eata_pio.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/scsi/eata_pio.c b/drivers/scsi/eata_pio.c
index ca8003f..481ecac 100644
--- a/drivers/scsi/eata_pio.c
+++ b/drivers/scsi/eata_pio.c
@@ -122,8 +122,7 @@ static int eata_pio_release(struct Scsi_Host *sh)
release_region(sh->io_port, sh->n_io_port);
}
/* At this point the PCI reference can go */
- if (hd->pdev)
- pci_dev_put(hd->pdev);
+ pci_dev_put(hd->pdev);
return 1;
}

--
1.7.9.5


\
 
 \ /
  Last update: 2015-06-25 12:21    [W:0.028 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site