af_unix: Clean up error paths in unix_stream_connect().
authorKuniyuki Iwashima <kuniyu@amazon.com>
Fri, 13 Dec 2024 11:08:40 +0000 (20:08 +0900)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 17 Dec 2024 11:08:27 +0000 (12:08 +0100)
commite26ee0a736bd949ce6fa51829fd0a2f6381391de
tree0fcc9b071f5f7c12f5a02eb056ba378797cb0306
parent34c899af6c1a9d65aa85c765b2eecb1b9a88e8b8
af_unix: Clean up error paths in unix_stream_connect().

The label order is weird in unix_stream_connect(), and all NULL checks
are unnecessary if reordered.

Let's clean up the error paths to make it easy to set a drop reason
for each path.

While at it, a comment with the old style is updated.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/unix/af_unix.c