xfrm: remove unused helper
authorFlorian Westphal <fw@strlen.de>
Tue, 27 Sep 2016 15:53:58 +0000 (17:53 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 30 Sep 2016 06:20:56 +0000 (08:20 +0200)
Not used anymore since 2009 (9e0d57fd6dad37,
'xfrm: SAD entries do not expire correctly after suspend-resume').

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_state.c

index 419bf5d463bde118274e9f4dc1fffba08f75f258..45cb7c699b65ba4e1c928e94c1a65d8ee7a8ef96 100644 (file)
@@ -388,14 +388,6 @@ static void xfrm_state_gc_task(struct work_struct *work)
                xfrm_state_gc_destroy(x);
 }
 
-static inline unsigned long make_jiffies(long secs)
-{
-       if (secs >= (MAX_SCHEDULE_TIMEOUT-1)/HZ)
-               return MAX_SCHEDULE_TIMEOUT-1;
-       else
-               return secs*HZ;
-}
-
 static enum hrtimer_restart xfrm_timer_handler(struct hrtimer *me)
 {
        struct tasklet_hrtimer *thr = container_of(me, struct tasklet_hrtimer, timer);