Skip to content

Commit b4adfe8

Browse files
duyuyang-gitingomolnar
authored andcommitted
locking/lockdep: Remove unused argument in __lock_release
The @nested is not used in __release_lock so remove it despite that it is not used in lock_release in the first place. Signed-off-by: Yuyang Du <duyuyang@gmail.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: bvanassche@acm.org Cc: frederic@kernel.org Cc: ming.lei@redhat.com Cc: will.deacon@arm.com Link: https://lkml.kernel.org/r/20190506081939.74287-19-duyuyang@gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 4609c4f commit b4adfe8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎kernel/locking/lockdep.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4096,7 +4096,7 @@ static int __lock_downgrade(struct lockdep_map *lock, unsigned long ip)
40964096
* @nested is an hysterical artifact, needs a tree wide cleanup.
40974097
*/
40984098
static int
4099-
__lock_release(struct lockdep_map *lock, int nested, unsigned long ip)
4099+
__lock_release(struct lockdep_map *lock, unsigned long ip)
41004100
{
41014101
struct task_struct *curr = current;
41024102
struct held_lock *hlock;
@@ -4384,7 +4384,7 @@ void lock_release(struct lockdep_map *lock, int nested,
43844384
check_flags(flags);
43854385
current->lockdep_recursion = 1;
43864386
trace_lock_release(lock, ip);
4387-
if (__lock_release(lock, nested, ip))
4387+
if (__lock_release(lock, ip))
43884388
check_chain_key(current);
43894389
current->lockdep_recursion = 0;
43904390
raw_local_irq_restore(flags);

0 commit comments

Comments
 (0)