mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-29 17:53:58 +00:00
mdio_bus: Remove unneeded gpiod NULL check
The gpiod API checks for NULL descriptors, so there is no need to duplicate the check in the driver. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
24251c2647
commit
95b80bf3db
1 changed files with 2 additions and 4 deletions
|
@ -399,7 +399,6 @@ error:
|
|||
}
|
||||
|
||||
/* Put PHYs in RESET to save power */
|
||||
if (bus->reset_gpiod)
|
||||
gpiod_set_value_cansleep(bus->reset_gpiod, 1);
|
||||
|
||||
device_del(&bus->dev);
|
||||
|
@ -425,7 +424,6 @@ void mdiobus_unregister(struct mii_bus *bus)
|
|||
}
|
||||
|
||||
/* Put PHYs in RESET to save power */
|
||||
if (bus->reset_gpiod)
|
||||
gpiod_set_value_cansleep(bus->reset_gpiod, 1);
|
||||
|
||||
device_del(&bus->dev);
|
||||
|
|
Loading…
Add table
Reference in a new issue