mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21: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
|
|
@ -45,7 +45,6 @@ void nr_init_timers(struct sock *sk)
|
|||
setup_timer(&nr->idletimer, nr_idletimer_expiry, (unsigned long)sk);
|
||||
|
||||
/* initialized by sock_init_data */
|
||||
sk->sk_timer.data = (unsigned long)sk;
|
||||
sk->sk_timer.function = &nr_heartbeat_expiry;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue