From patchwork Fri Nov 19 11:45:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hui Wang X-Patchwork-Id: 1557083 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=rU5yFowv; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HwZgQ0Y1xz9sPf for ; Fri, 19 Nov 2021 22:48:34 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1mo2NW-0004Aq-Go; Fri, 19 Nov 2021 11:48:26 +0000 Received: from smtp-relay-canonical-1.internal ([10.131.114.174] helo=smtp-relay-canonical-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1mo2NQ-0003rp-HB for kernel-team@lists.ubuntu.com; Fri, 19 Nov 2021 11:48:20 +0000 Received: from localhost.localdomain (unknown [10.101.195.16]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id 61FDB3F1B0 for ; Fri, 19 Nov 2021 11:48:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1637322499; bh=pqYrIVJVLmTXG9MTpcVOYs8G92XTfywoYFh3TCpUFEQ=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=rU5yFowvyywhEOD4uT8j9G2/8LdtrhOTu5hKKCDhsZnFIvfo6Ls1wYIHmtd8sq4MZ dNxGYzyup5XrofgvNBCJzV5vSGN7VeN5G9ME1TTX6LMdiX0RCYEi01q5wQU8kGj+vy FnlTTTCixp0noBF9L+pmcdcsJeFPuvON5RLZNhDRFh7xerRIF4f7LeMr+gHfJdiP0i pju8XhhqDGovRbqfAkzoDiRfTkFbTs+L6zLlpfmWkWNzjh5GKlCU9YrgzD/OACpopZ IVOc6JJiySPxaeRvUmrN+9xjMdTQmoksRwKaPNiv98lzqHvetayd3K8BMOK/wiEOMh 3RyC93ayWIqXA== From: Hui Wang To: kernel-team@lists.ubuntu.com Subject: [SRU][J][PATCH 10/17] ASoC: intel: sof_sdw: return the original error number Date: Fri, 19 Nov 2021 19:45:58 +0800 Message-Id: <20211119114605.19838-28-hui.wang@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211119114605.19838-1-hui.wang@canonical.com> References: <20211119114605.19838-1-hui.wang@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Bard Liao BugLink: https://bugs.launchpad.net/bugs/1951563 We don't want to convert create_sdw_dailink()'s return value to -ENOMEM. Signed-off-by: Bard Liao Reviewed-by: Pierre-Louis Bossart Reviewed-by: Ranjani Sridharan Reviewed-by: Rander Wang Link: https://lore.kernel.org/r/20211027021824.24776-2-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown (cherry picked from commit dd31ddd81904070d0a9cafd5499d3210a322f8af linux-next) Signed-off-by: Hui Wang --- sound/soc/intel/boards/sof_sdw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c index 8cc4cda6be36..966958b858c2 100644 --- a/sound/soc/intel/boards/sof_sdw.c +++ b/sound/soc/intel/boards/sof_sdw.c @@ -1193,7 +1193,7 @@ static int sof_card_dai_links_create(struct device *dev, &ignore_pch_dmic); if (ret < 0) { dev_err(dev, "failed to create dai link %d", be_id); - return -ENOMEM; + return ret; } }