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

[SCSI] lpfc: Fix NPIV compile problem

drivers/scsi/lpfc/lpfc_init.c: In function 'lpfc_create_port':
drivers/scsi/lpfc/lpfc_init.c:1573: error: 'struct kobject' has no member named 'dentry'

Just remove the if check on this ... lpfc shouldn't be poking around
in kobject structures.

drivers/scsi/lpfc/lpfc_init.c: In function 'lpfc_pci_probe_one':
drivers/scsi/lpfc/lpfc_init.c:1723: warning: unused variable 'retval'

And remove the unused variable.

Cc: James Smart <James.Smart@Emulex.Com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

+1 -4
+1 -4
drivers/scsi/lpfc/lpfc_init.c
··· 1570 1570 if (error) 1571 1571 goto out_put_shost; 1572 1572 1573 - if (!shost->shost_classdev.kobj.dentry) 1574 - goto out_put_shost; 1575 - 1576 1573 list_add_tail(&vport->listentry, &phba->port_list); 1577 1574 return vport; 1578 1575 ··· 1717 1720 struct lpfc_iocbq *iocbq_entry = NULL, *iocbq_next = NULL; 1718 1721 struct Scsi_Host *shost = NULL; 1719 1722 unsigned long bar0map_len, bar2map_len; 1720 - int error = -ENODEV, retval; 1723 + int error = -ENODEV; 1721 1724 int i; 1722 1725 uint16_t iotag; 1723 1726