mirror of https://gitee.com/openkylin/linux.git
IB/hfi1: Clean up unused argument
hfi1_pcie_ddinit takes the PCI device id as an argument but never uses it. Clean it up. Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Easwar Hariharan <easwar.hariharan@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
eacc830f95
commit
26ea2544dd
|
@ -14449,7 +14449,7 @@ struct hfi1_devdata *hfi1_init_dd(struct pci_dev *pdev,
|
||||||
* Any error printing is already done by the init code.
|
* Any error printing is already done by the init code.
|
||||||
* On return, we have the chip mapped.
|
* On return, we have the chip mapped.
|
||||||
*/
|
*/
|
||||||
ret = hfi1_pcie_ddinit(dd, pdev, ent);
|
ret = hfi1_pcie_ddinit(dd, pdev);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto bail_free;
|
goto bail_free;
|
||||||
|
|
||||||
|
|
|
@ -1736,8 +1736,7 @@ int qsfp_dump(struct hfi1_pportdata *ppd, char *buf, int len);
|
||||||
|
|
||||||
int hfi1_pcie_init(struct pci_dev *, const struct pci_device_id *);
|
int hfi1_pcie_init(struct pci_dev *, const struct pci_device_id *);
|
||||||
void hfi1_pcie_cleanup(struct pci_dev *);
|
void hfi1_pcie_cleanup(struct pci_dev *);
|
||||||
int hfi1_pcie_ddinit(struct hfi1_devdata *, struct pci_dev *,
|
int hfi1_pcie_ddinit(struct hfi1_devdata *, struct pci_dev *);
|
||||||
const struct pci_device_id *);
|
|
||||||
void hfi1_pcie_ddcleanup(struct hfi1_devdata *);
|
void hfi1_pcie_ddcleanup(struct hfi1_devdata *);
|
||||||
void hfi1_pcie_flr(struct hfi1_devdata *);
|
void hfi1_pcie_flr(struct hfi1_devdata *);
|
||||||
int pcie_speeds(struct hfi1_devdata *);
|
int pcie_speeds(struct hfi1_devdata *);
|
||||||
|
|
|
@ -157,8 +157,7 @@ void hfi1_pcie_cleanup(struct pci_dev *pdev)
|
||||||
* fields required to re-initialize after a chip reset, or for
|
* fields required to re-initialize after a chip reset, or for
|
||||||
* various other purposes
|
* various other purposes
|
||||||
*/
|
*/
|
||||||
int hfi1_pcie_ddinit(struct hfi1_devdata *dd, struct pci_dev *pdev,
|
int hfi1_pcie_ddinit(struct hfi1_devdata *dd, struct pci_dev *pdev)
|
||||||
const struct pci_device_id *ent)
|
|
||||||
{
|
{
|
||||||
unsigned long len;
|
unsigned long len;
|
||||||
resource_size_t addr;
|
resource_size_t addr;
|
||||||
|
|
Loading…
Reference in New Issue