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

Commit 820a58b7 authored by Konstantin Dorfman's avatar Konstantin Dorfman
Browse files

soc: qcom: spcom: fix error code on create existing channel



This change fixes the error code, on an attempt to create a channel
that already exists.

Change-Id: If8e8aafed725488c88a40777600fcfedc10bb60e
Signed-off-by: default avatarKonstantin Dorfman <kdorfman@codeaurora.org>
parent 5542ee99
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1684,7 +1684,7 @@ static int spcom_create_channel_chardev(const char *name)
	ch = spcom_find_channel_by_name(name);
	if (ch) {
		pr_err("channel [%s] already exist.\n", name);
		return -EINVAL;
		return -EBUSY;
	}

	ch = spcom_find_channel_by_name(""); /* find reserved channel */