bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 13/66] device/dev_lookup.c: remove unused lock


From: Marin Ramesa
Subject: [PATCH 13/66] device/dev_lookup.c: remove unused lock
Date: Thu, 5 Dec 2013 22:03:07 +0100

* device/dev_lookup.c (dev_port_lock): Remove unused lock.

---
 device/dev_lookup.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/device/dev_lookup.c b/device/dev_lookup.c
index 01317b9..0c2198e 100644
--- a/device/dev_lookup.c
+++ b/device/dev_lookup.c
@@ -242,8 +242,6 @@ mach_device_deallocate(device)
 /*
  * port-to-device lookup routines.
  */
-decl_simple_lock_data(,
-       dev_port_lock)
 
 /*
  * Enter a port-to-device mapping.
@@ -372,8 +370,6 @@ dev_lookup_init()
        for (i = 0; i < NDEVHASH; i++)
            queue_init(&dev_number_hash_table[i]);
 
-       simple_lock_init(&dev_port_lock);
-
        kmem_cache_init(&dev_hdr_cache, "mach_device",
                        sizeof(struct mach_device), 0, NULL, NULL, NULL, 0);
 }
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]