diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2021-04-01 18:43:15 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2021-04-30 21:38:32 +0200 |
commit | 4cf0abbce69bde3d07757dfa9be6420407fdbc45 (patch) | |
tree | c876f8db2409c2f39d9e0843b709e8a56f5c9c0f /drivers/scsi/cxlflash/main.c | |
parent | PCI/VPD: Change pci_vpd_init() return type to void (diff) | |
download | linux-4cf0abbce69bde3d07757dfa9be6420407fdbc45.tar.xz linux-4cf0abbce69bde3d07757dfa9be6420407fdbc45.zip |
PCI/VPD: Remove pci_vpd_find_tag() 'offset' argument
All callers pass 0 as offset. Therefore remove the parameter and use a
fixed offset 0 in pci_vpd_find_tag().
Link: https://lore.kernel.org/r/f62e6e19-5423-2ead-b2bd-62844b23ef8f@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/scsi/cxlflash/main.c')
-rw-r--r-- | drivers/scsi/cxlflash/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/cxlflash/main.c b/drivers/scsi/cxlflash/main.c index e72440d919d2..ae0963cec222 100644 --- a/drivers/scsi/cxlflash/main.c +++ b/drivers/scsi/cxlflash/main.c @@ -1649,8 +1649,7 @@ static int read_vpd(struct cxlflash_cfg *cfg, u64 wwpn[]) } /* Get the read only section offset */ - ro_start = pci_vpd_find_tag(vpd_data, 0, vpd_size, - PCI_VPD_LRDT_RO_DATA); + ro_start = pci_vpd_find_tag(vpd_data, vpd_size, PCI_VPD_LRDT_RO_DATA); if (unlikely(ro_start < 0)) { dev_err(dev, "%s: VPD Read-only data not found\n", __func__); rc = -ENODEV; |