Commit 8d8c2fe5 authored by David S. Miller's avatar David S. Miller

[SPARC64]: Remove extraneous copy of atomic_dec_and_lock in debuglocks.c

parent e9165bbb
......@@ -296,13 +296,4 @@ void _do_write_unlock(rwlock_t *rw)
}
}
int atomic_dec_and_lock(atomic_t *atomic, spinlock_t *lock)
{
spin_lock(lock);
if (atomic_dec_and_test(atomic))
return 1;
spin_unlock(lock);
return 0;
}
#endif /* CONFIG_SMP && CONFIG_DEBUG_SPINLOCK */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment