Commit ed9ea88
af_unix: Remove sock->state assignment.
Both struct socket and struct sock have a variable to
manage its state, sock->state and sk->sk_state.
When both are used, the former typically manages syscall
state and the latter manages the actual connection state.
AF_UNIX only uses sk->sk_state.
Let's remove unnecessary assignemnts for sock->state.
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260529191829.3864438-1-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent ae4ef72 commit ed9ea88
1 file changed
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1142 | 1142 | | |
1143 | 1143 | | |
1144 | 1144 | | |
1145 | | - | |
1146 | | - | |
1147 | 1145 | | |
1148 | 1146 | | |
1149 | 1147 | | |
| |||
1775 | 1773 | | |
1776 | 1774 | | |
1777 | 1775 | | |
1778 | | - | |
1779 | 1776 | | |
1780 | 1777 | | |
1781 | 1778 | | |
| |||
1831 | 1828 | | |
1832 | 1829 | | |
1833 | 1830 | | |
1834 | | - | |
1835 | | - | |
| 1831 | + | |
1836 | 1832 | | |
1837 | 1833 | | |
1838 | 1834 | | |
| |||
1874 | 1870 | | |
1875 | 1871 | | |
1876 | 1872 | | |
1877 | | - | |
1878 | 1873 | | |
1879 | 1874 | | |
1880 | 1875 | | |
| |||
0 commit comments