lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <61ea29204b81265e05ee48f513c39653@208suo.com>
Date:   Mon, 17 Jul 2023 11:03:40 +0800
From:   hanyu001@...suo.com
To:     davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
        pabeni@...hat.com
Cc:     netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] ethernet: 3com: 3c574_cs: Add space around '='

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@...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++;

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ