X-Git-Url: https://repo.jachan.dev/linux.git/blobdiff_plain/3bec5b6aae830355e786e204b20a7cea38c3a8ed..71b77a7a27a3:/net/unix/af_unix.c?ds=inline diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 181ea6fb56a6..eb82bdc6cf7c 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -837,7 +837,7 @@ static int unix_create(struct net *net, struct socket *sock, int protocol, */ case SOCK_RAW: sock->type = SOCK_DGRAM; - /* fall through */ + fallthrough; case SOCK_DGRAM: sock->ops = &unix_dgram_ops; break; @@ -878,7 +878,6 @@ static int unix_autobind(struct socket *sock) if (err) return err; - err = 0; if (u->addr) goto out;