Commit c321a51
Danilo Krummrich
devres: remove unnecessary unlocks in devres_release_group()
There is no need to call spin_unlock_irqrestore() in every conditional
block, as release_nodes() can safely be called with an empty list, in
case we hit the "if else" or "else" case.
We do not use a scoped_guard() here to not unnecessarily change the
indentation level.
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/20260202235210.55176-8-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>1 parent e19f3fe commit c321a51
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
712 | 712 | | |
713 | 713 | | |
714 | 714 | | |
715 | | - | |
716 | 715 | | |
717 | 716 | | |
718 | 717 | | |
| |||
722 | 721 | | |
723 | 722 | | |
724 | 723 | | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | 724 | | |
729 | 725 | | |
730 | 726 | | |
731 | 727 | | |
732 | 728 | | |
733 | 729 | | |
734 | | - | |
735 | 730 | | |
736 | 731 | | |
737 | | - | |
738 | 732 | | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
739 | 736 | | |
740 | 737 | | |
741 | 738 | | |
| |||
0 commit comments