Commit 811b44b
serial: sc16is7xx: use guards for simple mutex locks
[ Upstream commit 0f4f88b ]
Guards can help to make the code more readable, so use them wherever they
do so.
In sc16is7xx_port_irq(), labels and 'rc' locals are eliminated completely.
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://patch.msgid.link/20251027142957.1032073-6-hugo@hugovil.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: 246ac11 ("serial: sc16is7xx: enable THRI before filling TX FIFO")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent a289a78 commit 811b44b
1 file changed
Lines changed: 8 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
791 | 792 | | |
792 | 793 | | |
793 | 794 | | |
794 | | - | |
795 | 795 | | |
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | | - | |
| 799 | + | |
800 | 800 | | |
801 | 801 | | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | | - | |
| 802 | + | |
| 803 | + | |
806 | 804 | | |
807 | 805 | | |
808 | 806 | | |
| |||
842 | 840 | | |
843 | 841 | | |
844 | 842 | | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
| 843 | + | |
849 | 844 | | |
850 | 845 | | |
851 | 846 | | |
| |||
875 | 870 | | |
876 | 871 | | |
877 | 872 | | |
878 | | - | |
| 873 | + | |
879 | 874 | | |
880 | | - | |
881 | 875 | | |
882 | 876 | | |
883 | 877 | | |
| |||
944 | 938 | | |
945 | 939 | | |
946 | 940 | | |
947 | | - | |
948 | | - | |
949 | | - | |
| 941 | + | |
| 942 | + | |
950 | 943 | | |
951 | 944 | | |
952 | 945 | | |
| |||
0 commit comments