Thread (1 message) 1 message, 1 author, 2023-07-14
DORMANTno replies

[PATCH] drivers: net: slip: Add space after that ','

From: <hidden>
Date: 2023-07-14 07:21:53
Also in: linux-acpi
Subsystem: acpi, acpi component architecture (acpica), networking drivers, the rest · Maintainers: "Rafael J. Wysocki", Saket Dumbre, Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

Possibly related (same subject, not in this thread)

Fix Error reported by checkpatch.pl

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

Signed-off-by: maqimei <redacted>
---
  drivers/acpi/acpica/rslist.c | 2 +-
  drivers/net/slip/slhc.c      | 4 ++--
  2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/acpi/acpica/rslist.c b/drivers/acpi/acpica/rslist.c
index 164c96e..d7dcd10 100644
--- a/drivers/acpi/acpica/rslist.c
+++ b/drivers/acpi/acpica/rslist.c
@@ -27,7 +27,7 @@
   *
   
******************************************************************************/
  acpi_status
-acpi_rs_convert_aml_to_resources(u8 * aml,
+acpi_rs_convert_aml_to_resources(u8 *aml,
                   u32 length,
                   u32 offset, u8 resource_index, void **context)
  {
diff --git a/drivers/net/slip/slhc.c b/drivers/net/slip/slhc.c
index ba93bab..72e64ee 100644
--- a/drivers/net/slip/slhc.c
+++ b/drivers/net/slip/slhc.c
@@ -676,8 +676,8 @@ struct slcompress *
      /* Update local state */
      cs = &comp->rstate[comp->recv_current = index];
      comp->flags &=~ SLF_TOSS;
-    memcpy(&cs->cs_ip,icp,20);
-    memcpy(&cs->cs_tcp,icp + ihl*4,20);
+    memcpy(&cs->cs_ip, icp, 20);
+    memcpy(&cs->cs_tcp, icp + ihl*4, 20);
      if (ihl > 5)
        memcpy(cs->cs_ipopt, icp + sizeof(struct iphdr), (ihl - 5) * 4);
      if (cs->cs_tcp.doff > 5)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help