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

Commit e83f8926 authored by Eric Holmberg's avatar Eric Holmberg
Browse files

soc: qcom: glink: fix parameter validation



Input argument is failing the glink_open() call if the optional
notify_rx_intent_req argument is not provided.

Remove check since a dummy implementation is automatically provided
if necessary.

Change-Id: I1bed01433bd1c3f86f7907c368fb03358958f5a3
Signed-off-by: default avatarEric Holmberg <eholmber@codeaurora.org>
parent 3f821f8b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1628,7 +1628,7 @@ void *glink_open(const struct glink_open_config *cfg)

	/* confirm required notification parameters */
	if (!(cfg->notify_rx || cfg->notify_rxv) || !cfg->notify_tx_done ||
			!cfg->notify_state || !cfg->notify_rx_intent_req) {
			!cfg->notify_state) {
		GLINK_ERR("%s: Incorrect notification parameters\n", __func__);
		return ERR_PTR(-EINVAL);
	}