Skip to content

Commit

Permalink
can: raw: fix indention
Browse files Browse the repository at this point in the history
This patch fixes the indention to follow kernel coding style.

Link: https://lore.kernel.org/r/20200915223527.1417033-7-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Marc Kleine-Budde committed Sep 21, 2020
1 parent 88bfb9a commit 6a54dde
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions net/can/raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,16 +154,16 @@ static void raw_rcv(struct sk_buff *oskb, void *data)
if (!skb)
return;

/* Put the datagram to the queue so that raw_recvmsg() can
* get it from there. We need to pass the interface index to
* raw_recvmsg(). We pass a whole struct sockaddr_can in skb->cb
* containing the interface index.
/* Put the datagram to the queue so that raw_recvmsg() can get
* it from there. We need to pass the interface index to
* raw_recvmsg(). We pass a whole struct sockaddr_can in
* skb->cb containing the interface index.
*/

sock_skb_cb_check_size(sizeof(struct sockaddr_can));
addr = (struct sockaddr_can *)skb->cb;
memset(addr, 0, sizeof(*addr));
addr->can_family = AF_CAN;
addr->can_family = AF_CAN;
addr->can_ifindex = skb->dev->ifindex;

/* add CAN specific message flags for raw_recvmsg() */
Expand Down Expand Up @@ -290,8 +290,8 @@ static int raw_notifier(struct notifier_block *nb,
kfree(ro->filter);

ro->ifindex = 0;
ro->bound = 0;
ro->count = 0;
ro->bound = 0;
ro->count = 0;
release_sock(sk);

sk->sk_err = ENODEV;
Expand Down Expand Up @@ -374,8 +374,8 @@ static int raw_release(struct socket *sock)
kfree(ro->filter);

ro->ifindex = 0;
ro->bound = 0;
ro->count = 0;
ro->bound = 0;
ro->count = 0;
free_percpu(ro->uniq);

sock_orphan(sk);
Expand Down Expand Up @@ -773,7 +773,7 @@ static int raw_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
skb_setup_tx_timestamp(skb, sk->sk_tsflags);

skb->dev = dev;
skb->sk = sk;
skb->sk = sk;
skb->priority = sk->sk_priority;

err = can_send(skb, ro->loopback);
Expand Down Expand Up @@ -801,8 +801,8 @@ static int raw_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
int err = 0;
int noblock;

noblock = flags & MSG_DONTWAIT;
flags &= ~MSG_DONTWAIT;
noblock = flags & MSG_DONTWAIT;
flags &= ~MSG_DONTWAIT;

skb = skb_recv_datagram(sk, flags, noblock, &err);
if (!skb)
Expand Down

0 comments on commit 6a54dde

Please sign in to comment.