Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1129935pxm; Thu, 3 Mar 2022 10:53:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOwQQ5KJVGuv269/owK18ktHvha+GzTHjWPOyaSle4DPIjAedxxK9tAMglUiJzBpfOL7bL X-Received: by 2002:a17:902:b709:b0:151:49e7:d4e1 with SMTP id d9-20020a170902b70900b0015149e7d4e1mr28741713pls.144.1646333593943; Thu, 03 Mar 2022 10:53:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646333593; cv=none; d=google.com; s=arc-20160816; b=ioc+V+uMNPaO2j1dhZKbmWsux41sKZDajX4CjYPUa8+LBjW7O4Gu6epTrIH3ORiVB7 afW9PrVyY+dG61jFoHHreFc7byDWqIXb7Lk89nZW05SBLM7GthUoOo4/7bR0PAGeQvNG ITJLKeERdGICXPaLEuR7R5BYgfi8W4/nm1+mUpScxd1VUnh9obuMwIPOALnOlaHn0dU9 HlA65RfNxYZRelO869hoC333Vlfil1FhUAzqZv95b7c4Zv2gdrSP8oiVxTDpAQF8Wtp+ gBbXXWx8CHC3XvtxC+6XlvC9qrrB7UBvEjf0yJmJfAvtExkfWp7yUI7drrM4KF6yol4e FQvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=71ZP0HhkAgra+5pwRxbVCGp5wL/k4hevq9c+UZpjcWE=; b=xezlYd8S+Xv4mS9Cn9kdgkfmrT3xgrQxbKBu5iLjFH7ZCRioCcm2lvJn3g43MjXOCh Oe/Z24JbYabPzEdCu9mMdlI1bJJMDPq8yGdyOgl7REOm90mJ0KgoSsqp2xClSTM/fexQ yKk2+bD6vmn4TPYpakZpnR1YzNjp+KQCB8WheKNR/S8IvBk3CaIgrR3ae4DVfRXlzmV4 i1uWANYFoG2/js6luT2Pn7G9exnEgwiMismjh8NzcUOx58B2k14n043+s/R+EQEWd/jd OKe3G91Wo1p1EmZXzBCDGwL8pez+nCUeOGydfYkNlKBGEtlHev5T6nvVz1InfqyyqKAF FiNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=dmgqtilp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g10-20020a056a000b8a00b004f6781de598si1996711pfj.221.2022.03.03.10.52.57; Thu, 03 Mar 2022 10:53:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=dmgqtilp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234099AbiCCRcP (ORCPT + 99 others); Thu, 3 Mar 2022 12:32:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235373AbiCCRcE (ORCPT ); Thu, 3 Mar 2022 12:32:04 -0500 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AF8319E0AB; Thu, 3 Mar 2022 09:31:19 -0800 (PST) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 223509T9013880; Thu, 3 Mar 2022 11:31:11 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=71ZP0HhkAgra+5pwRxbVCGp5wL/k4hevq9c+UZpjcWE=; b=dmgqtilpgWLGZoKLx0lW6vEB/f+pDn0QWDV/7sLfcaCMOV2O3CGWH0gQPxRARaTLqD3c ws0/y56Kfn0ghCEn2Oh73d99krpoQTwDZ6xl9JrfLt0M620ClR4uLNp0rt3dLkVyp0vE 8klw9tGWxJuVVo7mj2J5fOSeNPVa8OMfS0gObEPtG6ScPyRnpwLY4srubCV/NkuVDafI 5n6wAdfmAwJUAE4XFJSCcdzUPImCLY9U2eY8MTrR7V3wcCDyskMn3dGNNm+nCvOEsh0C 0YUxCb++OBuPxg0TgyGTHulG0eT/M4dRTMlymjhxv5bL3MzYWfwJSdBUmEli+h1ygR0K fQ== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3ejncq8ybn-8 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 03 Mar 2022 11:31:10 -0600 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Thu, 3 Mar 2022 17:31:08 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.2375.18 via Frontend Transport; Thu, 3 Mar 2022 17:31:08 +0000 Received: from aryzen.ad.cirrus.com (unknown [198.61.65.198]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id AB6592A1; Thu, 3 Mar 2022 17:31:07 +0000 (UTC) From: Lucas Tanure To: Liam Girdwood , Mark Brown , "Rob Herring" , Jaroslav Kysela , Takashi Iwai CC: , , , , Lucas Tanure Subject: [PATCH 15/20] hda: cs35l41: Remove unnecessary log Date: Thu, 3 Mar 2022 17:30:54 +0000 Message-ID: <20220303173059.269657-16-tanureal@opensource.cirrus.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220303173059.269657-1-tanureal@opensource.cirrus.com> References: <20220303173059.269657-1-tanureal@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 9qTLZvoXuQZkI6lwFnJFFrJhOp5BXCLB X-Proofpoint-GUID: 9qTLZvoXuQZkI6lwFnJFFrJhOp5BXCLB X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If regmap fails would fail during probe of the device. Signed-off-by: Lucas Tanure --- sound/pci/hda/cs35l41_hda.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/sound/pci/hda/cs35l41_hda.c b/sound/pci/hda/cs35l41_hda.c index 90c833a25599..f21d048e60ab 100644 --- a/sound/pci/hda/cs35l41_hda.c +++ b/sound/pci/hda/cs35l41_hda.c @@ -135,37 +135,31 @@ static void cs35l41_hda_playback_hook(struct device *dev, int action) struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev); const struct cs35l41_hda_reg_sequence *reg_seq = cs35l41->reg_seq; struct regmap *reg = cs35l41->regmap; - int ret = 0; switch (action) { case HDA_GEN_PCM_ACT_OPEN: - ret = regmap_multi_reg_write(reg, cs35l41_hda_config, - ARRAY_SIZE(cs35l41_hda_config)); + regmap_multi_reg_write(reg, cs35l41_hda_config, ARRAY_SIZE(cs35l41_hda_config)); regmap_update_bits(reg, CS35L41_PWR_CTRL2, CS35L41_AMP_EN_MASK, 1 << CS35L41_AMP_EN_SHIFT); break; case HDA_GEN_PCM_ACT_PREPARE: if (reg_seq->prepare) - ret = regmap_multi_reg_write(reg, reg_seq->prepare, reg_seq->num_prepare); + regmap_multi_reg_write(reg, reg_seq->prepare, reg_seq->num_prepare); break; case HDA_GEN_PCM_ACT_CLEANUP: regmap_multi_reg_write(reg, cs35l41_hda_mute, ARRAY_SIZE(cs35l41_hda_mute)); if (reg_seq->cleanup) - ret = regmap_multi_reg_write(reg, reg_seq->cleanup, reg_seq->num_cleanup); + regmap_multi_reg_write(reg, reg_seq->cleanup, reg_seq->num_cleanup); break; case HDA_GEN_PCM_ACT_CLOSE: regmap_update_bits(reg, CS35L41_PWR_CTRL2, CS35L41_AMP_EN_MASK, 0 << CS35L41_AMP_EN_SHIFT); if (reg_seq->close) - ret = regmap_multi_reg_write(reg, reg_seq->close, reg_seq->num_close); + regmap_multi_reg_write(reg, reg_seq->close, reg_seq->num_close); break; default: - ret = -EINVAL; break; } - - if (ret) - dev_warn(cs35l41->dev, "Failed to apply multi reg write: %d\n", ret); } static int cs35l41_hda_channel_map(struct device *dev, unsigned int tx_num, unsigned int *tx_slot, -- 2.35.1