Commit 86e86c3c authored by Dan Williams's avatar Dan Williams

tools/testing/cxl: Fix some error exits

Fix a few typos where 'goto err_port' was used rather than the object
specific cleanup.
Reviewed-by: default avatarDave Jiang <dave.jiang@intel.com>
Reviewed-by: default avatarVishal Verma <vishal.l.verma@intel.com>
Link: https://lore.kernel.org/r/166752184255.947915.16163477849330181425.stgit@dwillia2-xfh.jf.intel.comSigned-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 4d07ae22
...@@ -695,7 +695,7 @@ static __init int cxl_test_init(void) ...@@ -695,7 +695,7 @@ static __init int cxl_test_init(void)
pdev = platform_device_alloc("cxl_switch_uport", i); pdev = platform_device_alloc("cxl_switch_uport", i);
if (!pdev) if (!pdev)
goto err_port; goto err_uport;
pdev->dev.parent = &root_port->dev; pdev->dev.parent = &root_port->dev;
rc = platform_device_add(pdev); rc = platform_device_add(pdev);
...@@ -713,7 +713,7 @@ static __init int cxl_test_init(void) ...@@ -713,7 +713,7 @@ static __init int cxl_test_init(void)
pdev = platform_device_alloc("cxl_switch_dport", i); pdev = platform_device_alloc("cxl_switch_dport", i);
if (!pdev) if (!pdev)
goto err_port; goto err_dport;
pdev->dev.parent = &uport->dev; pdev->dev.parent = &uport->dev;
rc = platform_device_add(pdev); rc = platform_device_add(pdev);
......
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