Commit b0c3604
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 d11f15d commit b0c3604
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 | | |
| |||
794 | 795 | | |
795 | 796 | | |
796 | 797 | | |
797 | | - | |
798 | 798 | | |
799 | 799 | | |
800 | 800 | | |
801 | 801 | | |
802 | | - | |
| 802 | + | |
803 | 803 | | |
804 | 804 | | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | | - | |
| 805 | + | |
| 806 | + | |
809 | 807 | | |
810 | 808 | | |
811 | 809 | | |
| |||
845 | 843 | | |
846 | 844 | | |
847 | 845 | | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
| 846 | + | |
852 | 847 | | |
853 | 848 | | |
854 | 849 | | |
| |||
878 | 873 | | |
879 | 874 | | |
880 | 875 | | |
881 | | - | |
| 876 | + | |
882 | 877 | | |
883 | | - | |
884 | 878 | | |
885 | 879 | | |
886 | 880 | | |
| |||
947 | 941 | | |
948 | 942 | | |
949 | 943 | | |
950 | | - | |
951 | | - | |
952 | | - | |
| 944 | + | |
| 945 | + | |
953 | 946 | | |
954 | 947 | | |
955 | 948 | | |
| |||
0 commit comments