Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

isci: kill isci_port.domain_dev_list

Another unused field, and isci_port_init is overkill.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>

+6 -15
+6 -2
drivers/scsi/isci/host.c
··· 2557 2557 if (err) 2558 2558 return err; 2559 2559 2560 - for (i = 0; i < SCI_MAX_PORTS; i++) 2561 - isci_port_init(&ihost->ports[i], ihost, i); 2560 + for (i = 0; i < SCI_MAX_PORTS; i++) { 2561 + struct isci_port *iport = &ihost->ports[i]; 2562 + 2563 + INIT_LIST_HEAD(&iport->remote_dev_list); 2564 + iport->isci_host = ihost; 2565 + } 2562 2566 2563 2567 for (i = 0; i < SCI_MAX_PHYS; i++) 2564 2568 isci_phy_init(&ihost->phys[i], ihost, i);
-7
drivers/scsi/isci/port.c
··· 1606 1606 iport->phy_table[index] = NULL; 1607 1607 } 1608 1608 1609 - void isci_port_init(struct isci_port *iport, struct isci_host *ihost, int index) 1610 - { 1611 - INIT_LIST_HEAD(&iport->remote_dev_list); 1612 - INIT_LIST_HEAD(&iport->domain_dev_list); 1613 - iport->isci_host = ihost; 1614 - } 1615 - 1616 1609 void sci_port_broadcast_change_received(struct isci_port *iport, struct isci_phy *iphy) 1617 1610 { 1618 1611 struct isci_host *ihost = iport->owning_controller;
-6
drivers/scsi/isci/port.h
··· 97 97 struct isci_port { 98 98 struct isci_host *isci_host; 99 99 struct list_head remote_dev_list; 100 - struct list_head domain_dev_list; 101 100 #define IPORT_RESET_PENDING 0 102 101 unsigned long state; 103 102 enum sci_status hard_reset_status; ··· 271 272 272 273 void isci_port_formed(struct asd_sas_phy *); 273 274 void isci_port_deformed(struct asd_sas_phy *); 274 - 275 - void isci_port_init( 276 - struct isci_port *port, 277 - struct isci_host *host, 278 - int index); 279 275 280 276 int isci_port_perform_hard_reset(struct isci_host *ihost, struct isci_port *iport, 281 277 struct isci_phy *iphy);