Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e80aa29 authored by Oleg Drokin's avatar Oleg Drokin Committed by Greg Kroah-Hartman
Browse files

staging/lustre: Remove dead code in ldlm_lock_destroy_internal



This code has been commented out since end of 2012, so it's
clearly not needed here.

Signed-off-by: default avatarOleg Drokin <green@linuxhacker.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a3252ea0
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -337,16 +337,6 @@ static int ldlm_lock_destroy_internal(struct ldlm_lock *lock)
	ldlm_lock_remove_from_lru(lock);
	class_handle_unhash(&lock->l_handle);

#if 0
	/* Wake anyone waiting for this lock */
	/* FIXME: I should probably add yet another flag, instead of using
	 * l_export to only call this on clients */
	if (lock->l_export)
		class_export_put(lock->l_export);
	lock->l_export = NULL;
	if (lock->l_export && lock->l_completion_ast)
		lock->l_completion_ast(lock, 0);
#endif
	return 1;
}