mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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: Alastair D'Silva <[email protected]> Reviewed-by: Greg Kurz <[email protected]> Acked-by: Frederic Barrat <[email protected]> Acked-by: Andrew Donnellan <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
This commit is contained in:
parent
9c4ae06456
commit
32941494ff
1 changed files with 2 additions and 7 deletions
|
|
@ -68,7 +68,7 @@ static int find_dvsec_afu_ctrl(struct pci_dev *dev, u8 afu_idx)
|
|||
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;
|
||||
int pos;
|
||||
|
|
@ -89,7 +89,6 @@ static int read_pasid(struct pci_dev *dev, struct ocxl_fn_config *fn)
|
|||
out:
|
||||
dev_dbg(&dev->dev, "PASID capability:\n");
|
||||
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)
|
||||
|
|
@ -205,11 +204,7 @@ int ocxl_config_read_function(struct pci_dev *dev, struct ocxl_fn_config *fn)
|
|||
{
|
||||
int rc;
|
||||
|
||||
rc = read_pasid(dev, fn);
|
||||
if (rc) {
|
||||
dev_err(&dev->dev, "Invalid PASID configuration: %d\n", rc);
|
||||
return -ENODEV;
|
||||
}
|
||||
read_pasid(dev, fn);
|
||||
|
||||
rc = read_dvsec_tl(dev, fn);
|
||||
if (rc) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue