net/can/can_recvmsg.c: fix unused variable 'conn' error
This commit is contained in:
parent
00917bfe9d
commit
cbbe1c661e
@ -410,7 +410,7 @@ static uint16_t can_recvfrom_eventhandler(FAR struct net_driver_s *dev,
|
|||||||
FAR void *pvpriv, uint16_t flags)
|
FAR void *pvpriv, uint16_t flags)
|
||||||
{
|
{
|
||||||
struct can_recvfrom_s *pstate = (struct can_recvfrom_s *)pvpriv;
|
struct can_recvfrom_s *pstate = (struct can_recvfrom_s *)pvpriv;
|
||||||
#if defined(CONFIG_NET_CANPROTO_OPTIONS) || defined(CONFIG_NET_CAN_CANFD) || \
|
#if (defined(CONFIG_NET_CANPROTO_OPTIONS) && defined(CONFIG_NET_CAN_CANFD)) || \
|
||||||
defined(CONFIG_NET_TIMESTAMP)
|
defined(CONFIG_NET_TIMESTAMP)
|
||||||
struct can_conn_s *conn = (struct can_conn_s *)pstate->pr_sock->s_conn;
|
struct can_conn_s *conn = (struct can_conn_s *)pstate->pr_sock->s_conn;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user