Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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;