Commit 41ab653
HID: hid-steam: Mutex cleanup in steam_set_lizard_mode()
Both branches of this if/else start with mutex_lock and end with mutex_unlock.
This hoists the mutex lock/unlock outside of the if statement for simplicity.
Signed-off-by: Vicki Pfau <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>1 parent 27c0278 commit 41ab653
1 file changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
| 561 | + | |
561 | 562 | | |
562 | | - | |
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
567 | | - | |
568 | 567 | | |
569 | | - | |
570 | 568 | | |
571 | 569 | | |
572 | 570 | | |
| |||
578 | 576 | | |
579 | 577 | | |
580 | 578 | | |
581 | | - | |
582 | 579 | | |
583 | 580 | | |
584 | 581 | | |
585 | 582 | | |
586 | 583 | | |
587 | | - | |
588 | 584 | | |
589 | 585 | | |
| 586 | + | |
590 | 587 | | |
591 | 588 | | |
592 | 589 | | |
| |||
0 commit comments