net/can: remove psock reference from can connect

remove the psock back reference since timestamp
has been migrated to can_conn_s

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-02-11 20:13:35 +08:00 committed by Xiang Xiao
parent 369f7cc451
commit 98833affd0
2 changed files with 0 additions and 10 deletions

View File

@ -111,10 +111,6 @@ struct can_conn_s
int32_t tx_deadline;
# endif
#endif
#ifdef CONFIG_NET_TIMESTAMP
FAR struct socket *psock; /* Needed to get SO_TIMESTAMP value */
#endif
};
/****************************************************************************

View File

@ -221,12 +221,6 @@ static int can_setup(FAR struct socket *psock, int protocol)
return -ENOMEM;
}
#ifdef CONFIG_NET_TIMESTAMP
/* Store psock in conn se we can read the SO_TIMESTAMP value */
conn->psock = psock;
#endif
/* Initialize the connection instance */
conn->protocol = (uint8_t)protocol;