phy: mapphone-mdm6600: remove the unused variable error value assignment
PATCH 1/1 phy: mapphone-mdm6600: remove the unused variable error value assignment
From: Kaixu Xia <[email protected]>
The value of variable error is overwritten by the following call devm_request_threaded_irq() in phy_mdm6600_device_power_on(), so here the value assignment is useless. Remove it.
Reported-by Tosk Robot <[email protected]>
Signed-off-by Kaixu Xia <[email protected]>
--- drivers/phy/motorola/phy-mapphone-mdm6600.c | 1 - 1 file changed, 1 deletion(-)
drivers/phy/motorola/phy-mapphone-mdm6600.c +0 -1
@@ -421,7 +421,6 @@ static int phy_mdm6600_device_power_on(struct phy_mdm6600 *ddata)dev_info (ddata->dev,"Powered up OK\n" ); }else { ddata->enabled = false; - error = -ETIMEDOUT ;dev_err (ddata->dev,"Timed out powering up\n" ); }
Signature · 1 line
1.8.3.1
Vinod Koul
maintainerQuoted 17 lines · On 13-11-20, 16:34, [email protected] wrote:
From: Kaixu Xia <[email protected]>
The value of variable error is overwritten by the following call
devm_request_threaded_irq()inphy_mdm6600_device_power_on(), so here the value assignment is useless. Remove it.Reported-by Tosk Robot <[email protected]>Signed-off-by Kaixu Xia <[email protected]>--- drivers/phy/motorola/phy-mapphone-mdm6600.c | 1 - 1 file changed, 1 deletion(-)drivers/phy/motorola/phy-mapphone-mdm6600.c +0
-0
drivers/phy/motorola/phy-mapphone-mdm6600.c static int phy_mdm6600_device_power_on(struct phy_mdm6600 *ddata) · line 424
Quoted 5 lines
drivers/phy/motorola/phy-mapphone-mdm6600.c +0
-1@@ -421,7 +421,6 @@ static int phy_mdm6600_device_power_on(struct phy_mdm6600 *ddata)dev_info (ddata->dev,"Powered up OK\n" ); }else { ddata->enabled = false; - error = -ETIMEDOUT ;dev_err (ddata->dev,"Timed out powering up\n" );
Maybe the right fix is adding return error here..?
Signature · 1 line
~Vinod