diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2013-06-26 20:51:00 +0200 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-06-29 15:01:09 +0400 |
commit | 2a3606e352b9826b37ffc1414b60dd6a4f5c7b8e (patch) | |
tree | 348132e6ae7612d209e510cc9050b9275fdac363 /accel-pppd/session.c | |
parent | 6bf07eec92361996df794552e7e4f2ea36886b33 (diff) | |
download | accel-ppp-2a3606e352b9826b37ffc1414b60dd6a4f5c7b8e.tar.gz accel-ppp-2a3606e352b9826b37ffc1414b60dd6a4f5c7b8e.zip |
session: Remove unused call to time()
't' is set using time() but never used afterwards.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/session.c')
-rw-r--r-- | accel-pppd/session.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/accel-pppd/session.c b/accel-pppd/session.c index c6d0a3fc..1efad5ef 100644 --- a/accel-pppd/session.c +++ b/accel-pppd/session.c @@ -274,7 +274,6 @@ static void generate_sessionid(struct ap_session *ses) int __export ap_session_read_stats(struct ap_session *ses, struct rtnl_link_stats *stats) { struct rtnl_link_stats lstats; - time_t t; if (ses->ifindex == -1) return -1; @@ -282,8 +281,6 @@ int __export ap_session_read_stats(struct ap_session *ses, struct rtnl_link_stat if (!stats) stats = &lstats; - time(&t); - if (iplink_get_stats(ses->ifindex, stats)) { log_ppp_warn("failed to get interface statistics\n"); return -1; |