History

tools/testing/cxl: Fix some error exits

Fix a few typos where 'goto err_port' was used rather than the object specific cleanup.

Dan Williams committed 4 years ago

Commit 86e86c31 parent 4d07ae21 file · +2 −2Browse files

Unified · Split

tools/testing/cxl/test/cxl.c+2−2
@@ -695,7 +695,7 @@ static __init int cxl_test_init(void) · 694 unmodified lines
695695
696696 pdev = platform_device_alloc("cxl_switch_uport", i);
697697 if (!pdev)
698− goto err_port;
698+ goto err_uport;
699699 pdev->dev.parent = &root_port->dev;
700700
701701 rc = platform_device_add(pdev);
@@ -713,7 +713,7 @@ static __init int cxl_test_init(void) · 11 unmodified lines
713713
714714 pdev = platform_device_alloc("cxl_switch_dport", i);
715715 if (!pdev)
716− goto err_port;
716+ goto err_dport;
717717 pdev->dev.parent = &uport->dev;
718718
719719 rc = platform_device_add(pdev);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t