mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 05:40:55 +07:00
ocxl: simplify the return expression of free_function_dev()
Simplify the return expression. Acked-by: Frederic Barrat <fbarrat@linux.ibm.com> Acked-by: Andrew Donnellan <ajd@linux.ibm.com> Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com> Link: https://lore.kernel.org/r/20200921131047.92526-1-miaoqinglang@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4b53a3c721
commit
961d289b61
@ -327,14 +327,9 @@ static void free_function_dev(struct device *dev)
|
||||
|
||||
static int set_function_device(struct ocxl_fn *fn, struct pci_dev *dev)
|
||||
{
|
||||
int rc;
|
||||
|
||||
fn->dev.parent = &dev->dev;
|
||||
fn->dev.release = free_function_dev;
|
||||
rc = dev_set_name(&fn->dev, "ocxlfn.%s", dev_name(&dev->dev));
|
||||
if (rc)
|
||||
return rc;
|
||||
return 0;
|
||||
return dev_set_name(&fn->dev, "ocxlfn.%s", dev_name(&dev->dev));
|
||||
}
|
||||
|
||||
static int assign_function_actag(struct ocxl_fn *fn)
|
||||
|
Loading…
Reference in New Issue
Block a user