Fix a few typos where 'goto err_port' was used rather than the object specific cleanup.
Unified · Split
| @@ -695,7 +695,7 @@ static __init int cxl_test_init(void) · 694 unmodified lines | |||
| 695 | 695 | ||
| 696 | pdev = platform_device_alloc("cxl_switch_uport", i); | 696 | pdev = platform_device_alloc("cxl_switch_uport", i); |
| 697 | if (!pdev) | 697 | if (!pdev) |
| 698 | goto err_port; | 698 | goto err_uport; |
| 699 | pdev->dev.parent = &root_port->dev; | 699 | pdev->dev.parent = &root_port->dev; |
| 700 | 700 | ||
| 701 | rc = platform_device_add(pdev); | 701 | rc = platform_device_add(pdev); |
| @@ -713,7 +713,7 @@ static __init int cxl_test_init(void) · 11 unmodified lines | |||
| 713 | 713 | ||
| 714 | pdev = platform_device_alloc("cxl_switch_dport", i); | 714 | pdev = platform_device_alloc("cxl_switch_dport", i); |
| 715 | if (!pdev) | 715 | if (!pdev) |
| 716 | goto err_port; | 716 | goto err_dport; |
| 717 | pdev->dev.parent = &uport->dev; | 717 | pdev->dev.parent = &uport->dev; |
| 718 | 718 | ||
| 719 | rc = platform_device_add(pdev); | 719 | rc = platform_device_add(pdev); |