]> xenbits.xensource.com Git - seabios.git/commitdiff
pvscsi: Don't store reference to struct pci_device.
authorKevin O'Connor <kevin@koconnor.net>
Tue, 24 Dec 2013 05:37:12 +0000 (00:37 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 27 Dec 2013 17:41:07 +0000 (12:41 -0500)
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>
src/hw/pvscsi.c

index 6911230cba277e906f6361f2e39974cc125e563f..00ce3771183bcc98c9cbd2ef53ae851af6735dff 100644 (file)
@@ -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;