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

Commit 43b2f775 authored by Avaneesh Kumar Dwivedi's avatar Avaneesh Kumar Dwivedi
Browse files

soc: qcom: Return failure when subsystem descriptor is NULL



The check in this case was returning failure only in case of
acknowledgment gpio not being defined. Return failure also
when subsystem descriptor is NULL.

This issue was reported by static code analysis tool.

Change-Id: Iaacf11c299b8cd7f9417d3d8a67c0a6a92fcfbc6
Signed-off-by: default avatarAvaneesh Kumar Dwivedi <akdwived@codeaurora.org>
parent fc23af4e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -571,7 +571,7 @@ int wait_for_shutdown_ack(struct subsys_desc *desc)
{
	int count;

	if (desc && !desc->shutdown_ack_gpio)
	if (!desc || !desc->shutdown_ack_gpio)
		return 0;

	for (count = SHUTDOWN_ACK_MAX_LOOPS; count > 0; count--) {