X-Git-Url: https://repo.jachan.dev/linux.git/blobdiff_plain/2cc3c4b3c2e9c99e90aaf19cd801ff2c160f283c..71b77a7a27a3:/net/unix/af_unix.c 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;