Commit bff10040 authored by Marc Kleine-Budde's avatar Marc Kleine-Budde

can: raw: balance braces around else statements

This patch balances the braces around else statements, so that
checkpatch doesn't complain anymore.
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent d5e4ecac
...@@ -365,8 +365,9 @@ static int raw_release(struct socket *sock) ...@@ -365,8 +365,9 @@ static int raw_release(struct socket *sock)
raw_disable_allfilters(dev_net(dev), dev, sk); raw_disable_allfilters(dev_net(dev), dev, sk);
dev_put(dev); dev_put(dev);
} }
} else } else {
raw_disable_allfilters(sock_net(sk), NULL, sk); raw_disable_allfilters(sock_net(sk), NULL, sk);
}
} }
if (ro->count > 1) if (ro->count > 1)
...@@ -446,8 +447,9 @@ static int raw_bind(struct socket *sock, struct sockaddr *uaddr, int len) ...@@ -446,8 +447,9 @@ static int raw_bind(struct socket *sock, struct sockaddr *uaddr, int len)
dev, sk); dev, sk);
dev_put(dev); dev_put(dev);
} }
} else } else {
raw_disable_allfilters(sock_net(sk), NULL, sk); raw_disable_allfilters(sock_net(sk), NULL, sk);
}
} }
ro->ifindex = ifindex; ro->ifindex = ifindex;
ro->bound = 1; ro->bound = 1;
...@@ -669,8 +671,9 @@ static int raw_getsockopt(struct socket *sock, int level, int optname, ...@@ -669,8 +671,9 @@ static int raw_getsockopt(struct socket *sock, int level, int optname,
len = fsize; len = fsize;
if (copy_to_user(optval, ro->filter, len)) if (copy_to_user(optval, ro->filter, len))
err = -EFAULT; err = -EFAULT;
} else } else {
len = 0; len = 0;
}
release_sock(sk); release_sock(sk);
if (!err) if (!err)
...@@ -737,8 +740,9 @@ static int raw_sendmsg(struct socket *sock, struct msghdr *msg, size_t size) ...@@ -737,8 +740,9 @@ static int raw_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
return -EINVAL; return -EINVAL;
ifindex = addr->can_ifindex; ifindex = addr->can_ifindex;
} else } else {
ifindex = ro->ifindex; ifindex = ro->ifindex;
}
dev = dev_get_by_index(sock_net(sk), ifindex); dev = dev_get_by_index(sock_net(sk), ifindex);
if (!dev) if (!dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment