diff options
author | Saravana Kannan <saravanak@google.com> | 2021-08-18 06:38:01 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-18 12:48:52 +0300 |
commit | 663d946af5fb2fde0c0498f11fb295e9e8db979f (patch) | |
tree | 542188ca18febb94d19bdbb1a6d52533d07b7846 /drivers/net | |
parent | ed5d2937a6a8f12e7f815748f991990e79ac4cd1 (diff) | |
download | linux-663d946af5fb2fde0c0498f11fb295e9e8db979f.tar.xz |
net: mdio-mux: Delete unnecessary devm_kfree
The whole point of devm_* APIs is that you don't have to undo them if you
are returning an error that's going to get propagated out of a probe()
function. So delete unnecessary devm_kfree() call in the error return path.
Fixes: b60161668199 ("mdio: mux: Correct mdio_mux_init error path issues")
Signed-off-by: Saravana Kannan <saravanak@google.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Marc Zyngier <maz@kernel.org>
Tested-by: Marc Zyngier <maz@kernel.org>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/mdio/mdio-mux.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/mdio/mdio-mux.c b/drivers/net/mdio/mdio-mux.c index 110e4ee85785..5b37284f54d6 100644 --- a/drivers/net/mdio/mdio-mux.c +++ b/drivers/net/mdio/mdio-mux.c @@ -181,7 +181,6 @@ int mdio_mux_init(struct device *dev, } dev_err(dev, "Error: No acceptable child buses found\n"); - devm_kfree(dev, pb); err_pb_kz: put_device(&parent_bus->dev); err_parent_bus: |