浏览代码

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>
Christian Dietrich 14 年之前
父节点
当前提交
829f8ed2c9
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      kernel/srcu.c

+ 0 - 2
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,
 int __init_srcu_struct(struct srcu_struct *sp, const char *name,
 		       struct lock_class_key *key)
 		       struct lock_class_key *key)
 {
 {
-#ifdef CONFIG_DEBUG_LOCK_ALLOC
 	/* Don't re-initialize a lock while it is held. */
 	/* Don't re-initialize a lock while it is held. */
 	debug_check_no_locks_freed((void *)sp, sizeof(*sp));
 	debug_check_no_locks_freed((void *)sp, sizeof(*sp));
 	lockdep_init_map(&sp->dep_map, name, key, 0);
 	lockdep_init_map(&sp->dep_map, name, key, 0);
-#endif /* #ifdef CONFIG_DEBUG_LOCK_ALLOC */
 	return init_srcu_struct_fields(sp);
 	return init_srcu_struct_fields(sp);
 }
 }
 EXPORT_SYMBOL_GPL(__init_srcu_struct);
 EXPORT_SYMBOL_GPL(__init_srcu_struct);