mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
net/core: Collapse redundant sk_timer callback data assignments
The core sk_timer initializer can provide the common .data assignment instead of it being set separately in users. Cc: "David S. Miller" <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: Andrew Hendry <[email protected]> Cc: Eric Dumazet <[email protected]> Cc: Paolo Abeni <[email protected]> Cc: David Howells <[email protected]> Cc: Colin Ian King <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: linzhang <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Kees Cook <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
78802011fb
commit
9f12a77e46
5 changed files with 1 additions and 5 deletions
|
|
@ -414,7 +414,6 @@ static void __x25_destroy_socket(struct sock *sk)
|
|||
/* Defer: outstanding buffers */
|
||||
sk->sk_timer.expires = jiffies + 10 * HZ;
|
||||
sk->sk_timer.function = x25_destroy_timer;
|
||||
sk->sk_timer.data = (unsigned long)sk;
|
||||
add_timer(&sk->sk_timer);
|
||||
} else {
|
||||
/* drop last reference so sock_put will free */
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ void x25_init_timers(struct sock *sk)
|
|||
setup_timer(&x25->timer, x25_timer_expiry, (unsigned long)sk);
|
||||
|
||||
/* initialized by sock_init_data */
|
||||
sk->sk_timer.data = (unsigned long)sk;
|
||||
sk->sk_timer.function = &x25_heartbeat_expiry;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue