1
0
Fork 0

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: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
zero-colors
Alexander Usyskin 2017-06-12 12:15:56 +03:00 committed by Greg Kroah-Hartman
parent 99c06866bc
commit c845736dbc
1 changed files with 0 additions and 6 deletions

View File

@ -215,12 +215,6 @@ int mei_start(struct mei_device *dev)
}
} 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)) {
dev_err(dev->dev, "HBM haven't started");
goto err;