diff options
| author | Ying Xue <[email protected]> | 2013-06-17 14:54:46 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2013-06-17 22:53:01 +0000 |
| commit | c0fee8aca7206264d5e3dcc4e60aaf86501f4ea1 (patch) | |
| tree | 2e58d96d9afd483a5aaf9711360bd5d82fa3cd76 /net/tipc/socket.c | |
| parent | tipc: convert config_lock from spinlock to mutex (diff) | |
| download | kernel-c0fee8aca7206264d5e3dcc4e60aaf86501f4ea1.tar.gz kernel-c0fee8aca7206264d5e3dcc4e60aaf86501f4ea1.zip | |
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 <[email protected]>
Signed-off-by: Jon Maloy <[email protected]>
Signed-off-by: Paul Gortmaker <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/socket.c')
| -rw-r--r-- | net/tipc/socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c index 67f4e1fbf5a1..14ed54e961b6 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c @@ -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); } |
