From 01b3c9985c748f2314a98bca9846182a07c5ea18 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 24 Dec 2013 00:37:12 -0500 Subject: [PATCH] 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 --- src/hw/pvscsi.c | 2 -- 1 file changed, 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; -- 2.39.5