diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-12-24 00:37:12 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-12-27 12:41:07 -0500 |
commit | 01b3c9985c748f2314a98bca9846182a07c5ea18 (patch) | |
tree | 9e874bd646fba032d926ba1b95ccf5282fba2f54 | |
parent | 48367e2f1a68608d83207d4398767f8ffc0961f3 (diff) | |
download | seabios-01b3c9985c748f2314a98bca9846182a07c5ea18.zip seabios-01b3c9985c748f2314a98bca9846182a07c5ea18.tar.gz seabios-01b3c9985c748f2314a98bca9846182a07c5ea18.tar.bz2 |
pvscsi: Don't store reference to struct pci_device.
The pci_device reference isn't used by pvscsi, and it's confusing to
keep a long held reference to a short lived object.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | src/hw/pvscsi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/hw/pvscsi.c b/src/hw/pvscsi.c index 6911230..00ce377 100644 --- a/src/hw/pvscsi.c +++ b/src/hw/pvscsi.c @@ -129,7 +129,6 @@ struct pvscsi_ring_dsc_s { struct pvscsi_lun_s { struct drive_s drive; - struct pci_device *pci; u32 iobase; u8 target; u8 lun; @@ -291,7 +290,6 @@ pvscsi_add_lun(struct pci_device *pci, u32 iobase, memset(plun, 0, sizeof(*plun)); plun->drive.type = DTYPE_PVSCSI; plun->drive.cntl_id = pci->bdf; - plun->pci = pci; plun->target = target; plun->lun = lun; plun->iobase = iobase; |