From c845736dbcd26619acc136b588bcd2f48b1fda45 Mon Sep 17 00:00:00 2001 From: Alexander Usyskin Date: Mon, 12 Jun 2017 12:15:56 +0300 Subject: [PATCH] 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 Signed-off-by: Tomas Winkler Signed-off-by: Greg Kroah-Hartman --- drivers/misc/mei/init.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c index c8ad9ee..d2f6914 100644 --- a/drivers/misc/mei/init.c +++ b/drivers/misc/mei/init.c @@ -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; -- 2.7.4