can: raw: remove unnecessary blank lines, add suggested blank lines

This patch removes unnecessary blank lines, and adds suggested ones, so
that checkpatch doesn't complain anymore.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
Marc Kleine-Budde 2019-07-24 14:28:21 +02:00
parent d6ada83bba
commit d5e4ecac87
1 changed files with 1 additions and 3 deletions

View File

@ -280,7 +280,6 @@ static int raw_notifier(struct notifier_block *nb,
return NOTIFY_DONE; return NOTIFY_DONE;
switch (msg) { switch (msg) {
case NETDEV_UNREGISTER: case NETDEV_UNREGISTER:
lock_sock(sk); lock_sock(sk);
/* remove current filters & unregister */ /* remove current filters & unregister */
@ -499,7 +498,6 @@ static int raw_setsockopt(struct socket *sock, int level, int optname,
return -EINVAL; return -EINVAL;
switch (optname) { switch (optname) {
case CAN_RAW_FILTER: case CAN_RAW_FILTER:
if (optlen % sizeof(struct can_filter) != 0) if (optlen % sizeof(struct can_filter) != 0)
return -EINVAL; return -EINVAL;
@ -662,11 +660,11 @@ static int raw_getsockopt(struct socket *sock, int level, int optname,
return -EINVAL; return -EINVAL;
switch (optname) { switch (optname) {
case CAN_RAW_FILTER: case CAN_RAW_FILTER:
lock_sock(sk); lock_sock(sk);
if (ro->count > 0) { if (ro->count > 0) {
int fsize = ro->count * sizeof(struct can_filter); int fsize = ro->count * sizeof(struct can_filter);
if (len > fsize) if (len > fsize)
len = fsize; len = fsize;
if (copy_to_user(optval, ro->filter, len)) if (copy_to_user(optval, ro->filter, len))