Skip to content

Commit

Permalink
change tag from failed to out
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel cheng committed Mar 29, 2024
1 parent 30f4f94 commit ef1a63c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions driver/adv_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,23 +592,23 @@ int adv_uart_register(void)
if (ret < 0){
printk("ret < 0\n");
uart_unregister_driver(&adv_uart_driver);
goto failed;
goto out;
}

adv_vcom_devs = platform_device_alloc("adv_vcom_plat_dev", PLATFORM_DEVID_NONE);
if(adv_vcom_devs == 0){
printk("failed to alloc platform_dev\n");
ret = -1;
goto failed;
goto out;
}

ret = platform_device_add(adv_vcom_devs);
if(ret < 0){
platform_device_put(adv_vcom_devs);
goto failed;
goto out;
}

failed:
out:
return ret;
}
#else
Expand Down

0 comments on commit ef1a63c

Please sign in to comment.