diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2024-12-13 20:08:43 +0900 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-12-17 12:08:28 +0100 |
commit | 001a25088c35ab69bd4b2f208e47eb8acbce6353 (patch) | |
tree | 7ea139cc81ce62663e25af29b87dd604cc14a2df /rust/kernel | |
parent | d460b04bc452cf15810b79c15381fffd9d201915 (diff) |
af_unix: Set error only when needed in unix_dgram_sendmsg().
We will introduce skb drop reason for AF_UNIX, then we need to
set an errno and a drop reason for each path.
Let's set an error only when it's needed in unix_dgram_sendmsg().
Then, we need not (re)set 0 to err.
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions