Skip to contentSkip to conversation

ethernet: 3com: 3c574_cs: Add space around '='

PATCH New [email protected] 1 participant 1 message Jul 17, 2023 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 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)

---
 drivers/net/ethernet/3com/3c574_cs.c             | 6 +++---
 drivers/net/ethernet/myricom/myri10ge/myri10ge.c | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/ethernet/3com/3c574_cs.c +3 -3
index dc3b7c9..287af1d 100644
@@ -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. */

drivers/net/ethernet/myricom/myri10ge/myri10ge.c +1 -1
index 4a9cbb0..1c50e3e 100644
@@ -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++;