All of lore.kernel.org
 help / color / mirror / Atom feed
From: hanyu001@208suo.com
To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
	pabeni@redhat.com
Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: [PATCH] drivers/net/slip: Add space after that ','
Date: Fri, 14 Jul 2023 15:51:49 +0800	[thread overview]
Message-ID: <05e49e0f838eb127cbaee30f1b404c19@208suo.com> (raw)
In-Reply-To: <tencent_222320492FD62B52855A0449D87275D0CD0A@qq.com>

Fix Error reported by checkpatch.pl

./drivers/net/slip/slhc.c:476: ERROR: space required after that ',' 
(ctx:VxV)
./drivers/net/slip/slhc.c:476: ERROR: space required after that ',' 
(ctx:VxV)
./drivers/net/slip/slhc.c:477: ERROR: space required after that ',' 
(ctx:VxV)
./drivers/net/slip/slhc.c:477: ERROR: space required after that ',' 
(ctx:VxV)

Signed-off-by: maqimei <2433033762@qq.com>
---
  drivers/net/slip/slhc.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/slip/slhc.c b/drivers/net/slip/slhc.c
index 0011915..befdf4a 100644
--- a/drivers/net/slip/slhc.c
+++ b/drivers/net/slip/slhc.c
@@ -473,8 +473,8 @@ struct slcompress *
       * to use on future compressed packets in the protocol field).
       */
  uncompressed:
-    memcpy(&cs->cs_ip,ip,20);
-    memcpy(&cs->cs_tcp,th,20);
+    memcpy(&cs->cs_ip, ip, 20);
+    memcpy(&cs->cs_tcp, th, 20);
      if (ip->ihl > 5)
        memcpy(cs->cs_ipopt, ip+1, ((ip->ihl) - 5) * 4);
      if (th->doff > 5)

       reply	other threads:[~2023-07-14  7:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <tencent_222320492FD62B52855A0449D87275D0CD0A@qq.com>
2023-07-14  7:51 ` hanyu001 [this message]
     [not found] <tencent_C824D439C8CE96AD83779E068967114FF105@qq.com>
2023-07-14  8:02 ` [PATCH] drivers/net/slip: Add space after that ',' hanyu001
2023-07-15  3:36   ` 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=05e49e0f838eb127cbaee30f1b404c19@208suo.com \
    --to=hanyu001@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.