apix-can: remove CAN stop from cleanup()

This commit will remove the call to stop the CAN controller,
because freeing the CAN will stop the CAN interface already.
Calling stop twice will producing the following error message:

DIGIAPIX[824]: [ERROR] ldx_can_process_tx_socket: CAN network is down
DIGIAPIX[824]: [ERROR] ldx_can_stop: Unexpected state 0, in can0 interface
DIGIAPIX[824]: [ERROR] can0|ldx_can_thr: select error (-27|100)

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
This commit is contained in:
Mike Engel 2021-01-11 18:04:26 +01:00
parent 1317384494
commit ff6869f690
2 changed files with 0 additions and 2 deletions

View File

@ -79,7 +79,6 @@ static void cleanup(void)
free(canfilter);
if (can_if) {
ldx_can_stop(can_if);
ldx_can_free(can_if);
running = false;
}

View File

@ -111,7 +111,6 @@ void ms_sleep(uint32_t ms)
static void cleanup(void)
{
if (can_if) {
ldx_can_stop(can_if);
ldx_can_free(can_if);
running = false;
}