diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2019-07-24 08:28:21 -0400 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2019-08-13 11:32:20 -0400 |
commit | d5e4ecac87fc620b642c331d374a5fc4569493ed (patch) | |
tree | 59a84ac3ae8088b9f8ba813411fcaec962b13752 /net/can | |
parent | d6ada83bba9905c436b1ffcbd5fd995f5e38f291 (diff) |
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>
Diffstat (limited to 'net/can')
-rw-r--r-- | net/can/raw.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/can/raw.c b/net/can/raw.c index cb68e155075c..96fe0b5e3e1e 100644 --- a/net/can/raw.c +++ b/net/can/raw.c | |||
@@ -280,7 +280,6 @@ static int raw_notifier(struct notifier_block *nb, | |||
280 | return NOTIFY_DONE; | 280 | return NOTIFY_DONE; |
281 | 281 | ||
282 | switch (msg) { | 282 | switch (msg) { |
283 | |||
284 | case NETDEV_UNREGISTER: | 283 | case NETDEV_UNREGISTER: |
285 | lock_sock(sk); | 284 | lock_sock(sk); |
286 | /* remove current filters & unregister */ | 285 | /* remove current filters & unregister */ |
@@ -499,7 +498,6 @@ static int raw_setsockopt(struct socket *sock, int level, int optname, | |||
499 | return -EINVAL; | 498 | return -EINVAL; |
500 | 499 | ||
501 | switch (optname) { | 500 | switch (optname) { |
502 | |||
503 | case CAN_RAW_FILTER: | 501 | case CAN_RAW_FILTER: |
504 | if (optlen % sizeof(struct can_filter) != 0) | 502 | if (optlen % sizeof(struct can_filter) != 0) |
505 | return -EINVAL; | 503 | return -EINVAL; |
@@ -662,11 +660,11 @@ static int raw_getsockopt(struct socket *sock, int level, int optname, | |||
662 | return -EINVAL; | 660 | return -EINVAL; |
663 | 661 | ||
664 | switch (optname) { | 662 | switch (optname) { |
665 | |||
666 | case CAN_RAW_FILTER: | 663 | case CAN_RAW_FILTER: |
667 | lock_sock(sk); | 664 | lock_sock(sk); |
668 | if (ro->count > 0) { | 665 | if (ro->count > 0) { |
669 | int fsize = ro->count * sizeof(struct can_filter); | 666 | int fsize = ro->count * sizeof(struct can_filter); |
667 | |||
670 | if (len > fsize) | 668 | if (len > fsize) |
671 | len = fsize; | 669 | len = fsize; |
672 | if (copy_to_user(optval, ro->filter, len)) | 670 | if (copy_to_user(optval, ro->filter, len)) |