summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>2010-09-06 16:37:12 +0200
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2010-09-23 09:14:51 -0700
commit829f8ed2c963df7c23d1c644db6c4387eb1601fa (patch)
tree943c75c7222e8eb8d96a054946870564d6c41830
parent81a294c44e973dc7182e4733421b7cb2daba3c29 (diff)
downloadop-kernel-dev-829f8ed2c963df7c23d1c644db6c4387eb1601fa.zip
op-kernel-dev-829f8ed2c963df7c23d1c644db6c4387eb1601fa.tar.gz
kernel: Remove undead ifdef CONFIG_DEBUG_LOCK_ALLOC
The CONFIG_DEBUG_LOCK_ALLOC ifdef isn't necessary at this point, because it is checked in an outer ifdef level already and has no effect here. Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rw-r--r--kernel/srcu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/srcu.c b/kernel/srcu.c
index 2980da3..c71e075 100644
--- a/kernel/srcu.c
+++ b/kernel/srcu.c
@@ -46,11 +46,9 @@ static int init_srcu_struct_fields(struct srcu_struct *sp)
int __init_srcu_struct(struct srcu_struct *sp, const char *name,
struct lock_class_key *key)
{
-#ifdef CONFIG_DEBUG_LOCK_ALLOC
/* Don't re-initialize a lock while it is held. */
debug_check_no_locks_freed((void *)sp, sizeof(*sp));
lockdep_init_map(&sp->dep_map, name, key, 0);
-#endif /* #ifdef CONFIG_DEBUG_LOCK_ALLOC */
return init_srcu_struct_fields(sp);
}
EXPORT_SYMBOL_GPL(__init_srcu_struct);
OpenPOWER on IntegriCloud