Commit 32941494 authored by Alastair D'Silva's avatar Alastair D'Silva Committed by Michael Ellerman

ocxl: read_pasid never returns an error, so make it void

No need for a return value in read_pasid as it only returns 0.
Signed-off-by: default avatarAlastair D'Silva <alastair@d-silva.org>
Reviewed-by: default avatarGreg Kurz <groug@kaod.org>
Acked-by: default avatarFrederic Barrat <fbarrat@linux.ibm.com>
Acked-by: default avatarAndrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 9c4ae064
...@@ -68,7 +68,7 @@ static int find_dvsec_afu_ctrl(struct pci_dev *dev, u8 afu_idx) ...@@ -68,7 +68,7 @@ static int find_dvsec_afu_ctrl(struct pci_dev *dev, u8 afu_idx)
return 0; return 0;
} }
static int read_pasid(struct pci_dev *dev, struct ocxl_fn_config *fn) static void read_pasid(struct pci_dev *dev, struct ocxl_fn_config *fn)
{ {
u16 val; u16 val;
int pos; int pos;
...@@ -89,7 +89,6 @@ static int read_pasid(struct pci_dev *dev, struct ocxl_fn_config *fn) ...@@ -89,7 +89,6 @@ static int read_pasid(struct pci_dev *dev, struct ocxl_fn_config *fn)
out: out:
dev_dbg(&dev->dev, "PASID capability:\n"); dev_dbg(&dev->dev, "PASID capability:\n");
dev_dbg(&dev->dev, " Max PASID log = %d\n", fn->max_pasid_log); dev_dbg(&dev->dev, " Max PASID log = %d\n", fn->max_pasid_log);
return 0;
} }
static int read_dvsec_tl(struct pci_dev *dev, struct ocxl_fn_config *fn) static int read_dvsec_tl(struct pci_dev *dev, struct ocxl_fn_config *fn)
...@@ -205,11 +204,7 @@ int ocxl_config_read_function(struct pci_dev *dev, struct ocxl_fn_config *fn) ...@@ -205,11 +204,7 @@ int ocxl_config_read_function(struct pci_dev *dev, struct ocxl_fn_config *fn)
{ {
int rc; int rc;
rc = read_pasid(dev, fn); read_pasid(dev, fn);
if (rc) {
dev_err(&dev->dev, "Invalid PASID configuration: %d\n", rc);
return -ENODEV;
}
rc = read_dvsec_tl(dev, fn); rc = read_dvsec_tl(dev, fn);
if (rc) { if (rc) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment