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: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] ethernet: 3com: 3c574_cs: Add space around '='
Date: Mon, 17 Jul 2023 11:03:40 +0800	[thread overview]
Message-ID: <61ea29204b81265e05ee48f513c39653@208suo.com> (raw)
In-Reply-To: <tencent_847E8BEE8A0DA19841D2B6801D09F3E44808@qq.com>

Fix checkpatch warnings:

./drivers/net/ethernet/3com/3c574_cs.c:171: ERROR: spaces required 
around that '=' (ctx:VxV)
./drivers/net/ethernet/3com/3c574_cs.c:177: ERROR: spaces required 
around that '=' (ctx:VxV)
./drivers/net/ethernet/3com/3c574_cs.c:177: ERROR: spaces required 
around that '=' (ctx:VxV)
./drivers/net/ethernet/3com/3c574_cs.c:177: ERROR: spaces required 
around that '=' (ctx:VxV)
./drivers/net/ethernet/3com/3c574_cs.c:192: ERROR: spaces required 
around that '=' (ctx:VxV)

Signed-off-by: maqimei <2433033762@qq.com>
---
  drivers/net/ethernet/3com/3c574_cs.c             | 6 +++---
  drivers/net/ethernet/myricom/myri10ge/myri10ge.c | 2 +-
  2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/ethernet/3com/3c574_cs.c 
b/drivers/net/ethernet/3com/3c574_cs.c
index dc3b7c9..287af1d 100644
--- a/drivers/net/ethernet/3com/3c574_cs.c
+++ b/drivers/net/ethernet/3com/3c574_cs.c
@@ -168,13 +168,13 @@ enum Win0_EEPROM_cmds {
     Except for TxFree, which is overlapped by RunnerWrCtrl. */
  enum Window1 {
      TX_FIFO = 0x10,  RX_FIFO = 0x10,  RxErrors = 0x14,
-    RxStatus = 0x18,  Timer=0x1A, TxStatus = 0x1B,
+    RxStatus = 0x18,  Timer = 0x1A, TxStatus = 0x1B,
      TxFree = 0x0C, /* Remaining free bytes in Tx buffer. */
      RunnerRdCtrl = 0x16, RunnerWrCtrl = 0x1c,
  };

  enum Window3 {            /* Window 3: MAC/config bits. */
-    Wn3_Config=0, Wn3_MAC_Ctrl=6, Wn3_Options=8,
+    Wn3_Config = 0, Wn3_MAC_Ctrl = 6, Wn3_Options = 8,
  };
  enum wn3_config {
      Ram_size = 7,
@@ -189,7 +189,7 @@ enum wn3_config {
  };

  enum Window4 {        /* Window 4: Xcvr/media bits. */
-    Wn4_FIFODiag = 4, Wn4_NetDiag = 6, Wn4_PhysicalMgmt=8, Wn4_Media = 
10,
+    Wn4_FIFODiag = 4, Wn4_NetDiag = 6, Wn4_PhysicalMgmt = 8, Wn4_Media 
= 10,
  };

  #define MEDIA_TP    0x00C0    /* Enable link beat and jabber for 
10baseT. */
diff --git a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c 
b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c
index 4a9cbb0..1c50e3e 100644
--- a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c
+++ b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c
@@ -1237,7 +1237,7 @@ static int myri10ge_notify_dca_device(struct 
device *dev, void *data)
  #if MYRI10GE_ALLOC_SIZE > 4096
          /* don't cross a 4KB boundary */
          end_offset = rx->page_offset + bytes - 1;
-        if ((unsigned int )(rx->page_offset ^ end_offset) > 4095)
+        if ((unsigned int)(rx->page_offset ^ end_offset) > 4095)
              rx->page_offset = end_offset & ~4095;
  #endif
          rx->fill_cnt++;

           reply	other threads:[~2023-07-17  3:03 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <tencent_847E8BEE8A0DA19841D2B6801D09F3E44808@qq.com>]

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=61ea29204b81265e05ee48f513c39653@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.