mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
tipc: save sock structure pointer instead of void pointer to tipc_port
Directly save sock structure pointer instead of void pointer to avoid unnecessary cast conversions. Signed-off-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
28e5297281
commit
c0fee8aca7
3 changed files with 7 additions and 7 deletions
|
@ -1406,7 +1406,7 @@ static int backlog_rcv(struct sock *sk, struct sk_buff *buf)
|
|||
*/
|
||||
static u32 dispatch(struct tipc_port *tport, struct sk_buff *buf)
|
||||
{
|
||||
struct sock *sk = (struct sock *)tport->usr_handle;
|
||||
struct sock *sk = tport->sk;
|
||||
u32 res;
|
||||
|
||||
/*
|
||||
|
@ -1437,7 +1437,7 @@ static u32 dispatch(struct tipc_port *tport, struct sk_buff *buf)
|
|||
*/
|
||||
static void wakeupdispatch(struct tipc_port *tport)
|
||||
{
|
||||
struct sock *sk = (struct sock *)tport->usr_handle;
|
||||
struct sock *sk = tport->sk;
|
||||
|
||||
sk->sk_write_space(sk);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue