Merge branch 'linux-4.15' of git://github.com/skeggsb/linux into drm-fixes
[platform/kernel/linux-rpi.git] / net / netrom / af_netrom.c
index 2dec358..7ed9d44 100644 (file)
@@ -284,7 +284,7 @@ void nr_destroy_socket(struct sock *sk)
 
        if (sk_has_allocations(sk)) {
                /* Defer: outstanding buffers */
-               sk->sk_timer.function = (TIMER_FUNC_TYPE)nr_destroy_timer;
+               sk->sk_timer.function = nr_destroy_timer;
                sk->sk_timer.expires  = jiffies + 2 * HZ;
                add_timer(&sk->sk_timer);
        } else