diff --git a/cpu/esp32/stdio_usb_serial_jtag/usb_serial_jtag.c b/cpu/esp32/stdio_usb_serial_jtag/usb_serial_jtag.c index 1310668838f17..cd9ec7d119747 100644 --- a/cpu/esp32/stdio_usb_serial_jtag/usb_serial_jtag.c +++ b/cpu/esp32/stdio_usb_serial_jtag/usb_serial_jtag.c @@ -107,11 +107,9 @@ static void _init(void) #endif } -static void _detach(bool disable) +static void _detach(void) { - if (disable) { - intr_cntrl_ll_disable_interrupts(BIT(CPU_INUM_SERIAL_JTAG)); - } + intr_cntrl_ll_disable_interrupts(BIT(CPU_INUM_SERIAL_JTAG)); } STDIO_PROVIDER(STDIO_ESP32_SERIAL_JTAG, _init, _detach, _write)