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

Commit 5cc9ef70 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "disp: msm: add a early return check in msm lastclose"

parents 8d4b4043 a98f305d
Loading
Loading
Loading
Loading
+4 −3
Original line number Original line Diff line number Diff line
@@ -1021,10 +1021,11 @@ static void msm_lastclose(struct drm_device *dev)


	/* check for splash status before triggering cleanup
	/* check for splash status before triggering cleanup
	 * if we end up here with splash status ON i.e before first
	 * if we end up here with splash status ON i.e before first
	 * commit then ignore the last close call
	 * commit then ignore the last close call. Also, ignore
	 * if kms module is not yet initialized.
	 */
	 */
	if (kms && kms->funcs && kms->funcs->check_for_splash
	if (!kms || (kms && kms->funcs && kms->funcs->check_for_splash
		&& kms->funcs->check_for_splash(kms))
		&& kms->funcs->check_for_splash(kms)))
		return;
		return;


	/*
	/*