]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/rxrpc/ar-transport.c
net: Add missing braces to multi-statement if()s
[linux-2.6-omap-h63xx.git] / net / rxrpc / ar-transport.c
index d43d78f19302f9a126dd226d5bc1ffedf0bd9502..64069c8769a51e0ad629d377d79f847dd26a92d7 100644 (file)
@@ -183,13 +183,14 @@ void rxrpc_put_transport(struct rxrpc_transport *trans)
 
        ASSERTCMP(atomic_read(&trans->usage), >, 0);
 
-       trans->put_time = xtime.tv_sec;
-       if (unlikely(atomic_dec_and_test(&trans->usage)))
+       trans->put_time = get_seconds();
+       if (unlikely(atomic_dec_and_test(&trans->usage))) {
                _debug("zombie");
                /* let the reaper determine the timeout to avoid a race with
                 * overextending the timeout if the reaper is running at the
                 * same time */
                rxrpc_queue_delayed_work(&rxrpc_transport_reap, 0);
+       }
        _leave("");
 }
 
@@ -219,7 +220,7 @@ static void rxrpc_transport_reaper(struct work_struct *work)
 
        _enter("");
 
-       now = xtime.tv_sec;
+       now = get_seconds();
        earliest = ULONG_MAX;
 
        /* extract all the transports that have been dead too long */