aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/mdio_bus.c
diff options
context:
space:
mode:
authorDavid S. Miller <[email protected]>2021-06-16 19:34:08 +0000
committerDavid S. Miller <[email protected]>2021-06-16 19:34:08 +0000
commit63e96bc4e32811a2bc1e9172691e263e074a32ae (patch)
tree193e30a0398dd4a9170a5af2f9ffd5c1ace67e79 /drivers/net/phy/mdio_bus.c
parentnet: qualcomm: rmnet: Remove some unneeded casts (diff)
parentnet: phy: replace if-else statements with switch (diff)
downloadkernel-63e96bc4e32811a2bc1e9172691e263e074a32ae.tar.gz
kernel-63e96bc4e32811a2bc1e9172691e263e074a32ae.zip
Merge branch 'net-phy-cleanups'
Weihang Li says: ==================== net: phy: fix some coding-style issues Make some cleanups according to the coding style of kernel. Changes since v1: - Update commit description of #1 and #3. - Avoid changing the indentation in #2. - Change a group of if-else statement into switch from #4 and put it into a single patch. - Put '|' at the end of line in #5 and #7. - Avoid deleting spaces in definition of 'settings' in #5. - Drop #8 from the series which needs more discussion with David. ==================== Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/phy/mdio_bus.c')
-rw-r--r--drivers/net/phy/mdio_bus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c
index 6045ad3def12..24665670a89a 100644
--- a/drivers/net/phy/mdio_bus.c
+++ b/drivers/net/phy/mdio_bus.c
@@ -175,6 +175,7 @@ EXPORT_SYMBOL(mdiobus_alloc_size);
static void mdiobus_release(struct device *d)
{
struct mii_bus *bus = to_mii_bus(d);
+
BUG_ON(bus->state != MDIOBUS_RELEASED &&
/* for compatibility with error handling in drivers */
bus->state != MDIOBUS_ALLOCATED);