From ae947d5c81d10d842d372545499f7244f8d6f43b Mon Sep 17 00:00:00 2001 From: Wouter Symons Date: Fri, 7 Feb 2020 10:51:34 +0100 Subject: [PATCH] sys/can/conn: Fixup unused code --- sys/can/conn/isotp.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/sys/can/conn/isotp.c b/sys/can/conn/isotp.c index c719731909..119d99ebed 100644 --- a/sys/can/conn/isotp.c +++ b/sys/can/conn/isotp.c @@ -69,15 +69,6 @@ static inline void get_msg(conn_can_isotp_t *conn, msg_t *msg) #endif } -static inline int try_get_msg(conn_can_isotp_t *conn, msg_t *msg) -{ -#ifdef MODULE_CONN_CAN_ISOTP_MULTI - return mbox_try_get(&conn->master->mbox, msg); -#else - return mbox_try_get(&conn->mbox, msg); -#endif -} - int conn_can_isotp_create(conn_can_isotp_t *conn, struct isotp_options *options, int ifnum) { assert(conn != NULL); @@ -366,7 +357,7 @@ int conn_can_isotp_close(conn_can_isotp_t *conn) } } #else - while (try_get_msg(conn, &msg)) { + while (mbox_try_get(&conn->mbox, &msg)) { if (msg.type == CAN_MSG_RX_INDICATION) { DEBUG("conn_can_isotp_close: freeing %p\n", msg.content.ptr); isotp_free_rx(msg.content.ptr);