Thread (31 messages) 31 messages, 5 authors, 2021-05-06

Re: [PATCH v2 net-next 4/9] net: dsa: microchip: add DSA support for microchip lan937x

From: Andrew Lunn <andrew@lunn.ch>
Date: 2021-04-22 23:43:22
Also in: lkml, netdev

+int lan937x_reset_switch(struct ksz_device *dev)
+{
+	u32 data32;
+	u8 data8;
+	int rc;
+
+	/* reset switch */
+	rc = lan937x_cfg(dev, REG_SW_OPERATION, SW_RESET, true);
+	if (rc < 0)
+		return rc;
Please consistently use ret everywhere, not rc.

       Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help