mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: shijie001@208suo.com
To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
	pabeni@redhat.com
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] net: Fix errors in af_llc.c
Date: Tue, 18 Jul 2023 13:48:33 +0800	[thread overview]
Message-ID: <7da2f0c57e848c77ab30a948dc73653a@208suo.com> (raw)
In-Reply-To: <tencent_4CED92D1C8320CEA29489ED8DFEF3614EB05@qq.com>

The following checkpatch errors are removed:
ERROR: "foo* bar" should be "foo *bar"
ERROR: space required before the open parenthesis '('

Signed-off-by: Jie Shi <shijie001@208suo.com>
---
  net/llc/af_llc.c | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/net/llc/af_llc.c b/net/llc/af_llc.c
index 9ffbc667be6c..f0891088e7be 100644
--- a/net/llc/af_llc.c
+++ b/net/llc/af_llc.c
@@ -124,9 +124,9 @@ static inline u8 llc_ui_header_len(struct sock *sk, 
struct sockaddr_llc *addr)
   *
   *    This function always consumes a reference to the skb.
   */
-static int llc_ui_send_data(struct sock* sk, struct sk_buff *skb, int 
noblock)
+static int llc_ui_send_data(struct sock *sk, struct sk_buff *skb, int 
noblock)
  {
-    struct llc_sock* llc = llc_sk(sk);
+    struct llc_sock *llc = llc_sk(sk);

      if (unlikely(llc_data_accept_state(llc->state) ||
               llc->remote_busy_flag ||
@@ -1030,7 +1030,7 @@ static int llc_ui_getname(struct socket *sock, 
struct sockaddr *uaddr,
          rc = -ENOTCONN;
          if (sk->sk_state != TCP_ESTABLISHED)
              goto out;
-        if(llc->dev)
+        if (llc->dev)
              sllc.sllc_arphrd = llc->dev->type;
          sllc.sllc_sap = llc->daddr.lsap;
          memcpy(&sllc.sllc_mac, &llc->daddr.mac, IFHWADDRLEN);

       reply	other threads:[~2023-07-18  5:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <tencent_4CED92D1C8320CEA29489ED8DFEF3614EB05@qq.com>
2023-07-18  5:48 ` shijie001 [this message]
2023-07-18 19:47   ` Jakub Kicinski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7da2f0c57e848c77ab30a948dc73653a@208suo.com \
    --to=shijie001@208suo.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome