Commit c845736d authored by Alexander Usyskin's avatar Alexander Usyskin Committed by Greg Kroah-Hartman

mei: drop unreachable code in mei_start

Device disabled state is caught inside the retry loop, so
there is no need to check it once again afterwards.
Signed-off-by: default avatarAlexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 99c06866
...@@ -215,12 +215,6 @@ int mei_start(struct mei_device *dev) ...@@ -215,12 +215,6 @@ int mei_start(struct mei_device *dev)
} }
} while (ret); } while (ret);
/* we cannot start the device w/o hbm start message completed */
if (dev->dev_state == MEI_DEV_DISABLED) {
dev_err(dev->dev, "reset failed");
goto err;
}
if (mei_hbm_start_wait(dev)) { if (mei_hbm_start_wait(dev)) {
dev_err(dev->dev, "HBM haven't started"); dev_err(dev->dev, "HBM haven't started");
goto err; goto err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment