Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15642386rwb; Mon, 28 Nov 2022 14:17:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf7PR7h6ude8tzt1Ttf/0RmR9YItUTL0Av7XoKvDRO4RuESLhN6NT2TIAiXtluxoCqbbz4JW X-Received: by 2002:a17:90a:94c3:b0:219:e20:9bf7 with SMTP id j3-20020a17090a94c300b002190e209bf7mr18236842pjw.61.1669673854985; Mon, 28 Nov 2022 14:17:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669673854; cv=none; d=google.com; s=arc-20160816; b=BJda4kauF4/t+I6WeerEGQ8wwzcJgEG2uyWJE8Jbvi4+IXT/3PnYqI7+s4lW0IMoxE RQokgzbcpI1LFAmHgGG2HiplB8cCdZmlKOxJkZU0nuinMd4y/YRuZAuwB5l8mBlCIez3 JSxgYycLp1xloNk/K757Lo40ngt4b0MiqypYAf6tdo+tQp2jsSIMm2V+xkueK+HbTZmz 421go41gU+H5JiV00IFaN6T73sMw0D0DLRlqr2jOepZUnGZbCBG0rEmRe6H/OeK0Q/kc NILWnu75exix/LwO4TtzsPxrmHjwc9vfMl+1EOR0sTUsRPG7cmstFC/HMbOUwz7ffmGz Soxg== 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=Sqj31xD4hPaFJyMRspnZtLV/GdibyQshhKJftkXPTVY=; b=G2v6huOFp2Q0tr/flayoaM9Wh0vFHJxptVN0bir1TizZElT+WP24SyUjCpNVd+Mga8 64PdMjoT4qugOQYff9taJztZqwaOnmZ4USEW2HGW2yxqLrQYuNAo+NQeXCkGWMor6G5K fhSgdlyYeGefPtafFRy58IFELxL/dp4g5G+yPLrYAPLUdhed6ko0hUur8y66s1//EczJ FH80cfD1CwOqnp3NrmSaXO1XH+N9SU/Nhz+p4DZPC89hu03LjhNRcdNXzK/UUcTb598o SCzRkprq5/zbX7ziZ51/j9gHgWrbWuFdEpifFXauOzZ7a3p2zl0AqensD+FVKSI9oq9X wNLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LX1I5X2T; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h8-20020a170902b94800b00188b79ec70fsi11944026pls.581.2022.11.28.14.17.24; Mon, 28 Nov 2022 14:17:34 -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=@chromium.org header.s=google header.b=LX1I5X2T; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234148AbiK1WMC (ORCPT + 84 others); Mon, 28 Nov 2022 17:12:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234455AbiK1WMA (ORCPT ); Mon, 28 Nov 2022 17:12:00 -0500 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 586B930F60 for ; Mon, 28 Nov 2022 14:11:59 -0800 (PST) Received: by mail-io1-xd2b.google.com with SMTP id b2so8719068iof.12 for ; Mon, 28 Nov 2022 14:11:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Sqj31xD4hPaFJyMRspnZtLV/GdibyQshhKJftkXPTVY=; b=LX1I5X2Tqi3H4osOssCuWhQxDxiOSlkZYdf+xSNNQ5ROewNwQQhCSV6qRABxIV2Bks oYRqoJPX71/O7LWeXlCZXMdXOJYPsyjuD4LOYDUmiqHaJXS34kSPYV3r0aSd22RTBcvD HpGsQZUSAGnCIdx7iCLmqGl1ZVN/RS78RxSwQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Sqj31xD4hPaFJyMRspnZtLV/GdibyQshhKJftkXPTVY=; b=7j/h6fHsfEzXVOG9MHEk47tW3PlkBGMnZaXcpwk/lCXogWDjGmGkiyx8W5Z/u1IE+P 0qbihT4eErESE/r6dQSARPlpqeuhk8WRIo5Gl4wqN6g1gULDqo89j13GNUo4Q2kxsIPg Y36MAxX9rU3x5rTuSYtUyCHspkVjlxC5KcsNHYLe5TUVDPW6q9MiUjm5ABvVy0nEmW5I VDWHuDvPz/fJRGnsf/ATFugKSZFHbSiz9HNUm5eGYHMyox745NacBB4zkQwYwmj3AdO1 sSEC8xk/TME71iqutRx60FLAddBPpfDKH02r0wPgKjAFyVKdl1aCk9Cl2AtcKWb1POoS 10sw== X-Gm-Message-State: ANoB5pnXOGPs4WJHXwCQgu0naoG8wteEGqWvQEAFFuFBC3EB/oGj4Y3T IBlGAUU3mdb06IMTu6AODASS6w== X-Received: by 2002:a05:6602:21c2:b0:6c3:168a:a25e with SMTP id c2-20020a05660221c200b006c3168aa25emr17433231ioc.174.1669673518761; Mon, 28 Nov 2022 14:11:58 -0800 (PST) Received: from localhost (30.23.70.34.bc.googleusercontent.com. [34.70.23.30]) by smtp.gmail.com with UTF8SMTPSA id a15-20020a92ce4f000000b00302bcbad239sm3827937ilr.77.2022.11.28.14.11.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Nov 2022 14:11:58 -0800 (PST) From: Matthias Kaehlcke To: Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: alsa-devel@alsa-project.org, Douglas Anderson , Srinivasa Rao Mandadapu , linux-kernel@vger.kernel.org, Judy Hsiao , Matthias Kaehlcke Subject: [PATCH 2/2] ASoC: qcom: lpass-sc7180: Return 0 instead of 'ret' at the end of _resume() Date: Mon, 28 Nov 2022 22:11:55 +0000 Message-Id: <20221128221152.2.I8d1993f41f0da1eac0ecba321678ac489f9c0b9b@changeid> X-Mailer: git-send-email 2.38.1.584.g0f3c55d4c2-goog In-Reply-To: <20221128221152.1.Ia805c688ee968fbbec7b93dc10742876fdef8024@changeid> References: <20221128221152.1.Ia805c688ee968fbbec7b93dc10742876fdef8024@changeid> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 sc7180_lpass_dev_resume() returns 'ret' at the end of the function, where 'ret' is always 0. Just return 0 to make it plain obvious that this is always the success path. Also add an empty line between the error handling path and the return. Signed-off-by: Matthias Kaehlcke --- sound/soc/qcom/lpass-sc7180.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/qcom/lpass-sc7180.c b/sound/soc/qcom/lpass-sc7180.c index 7a81e609727c..30a28e3152cb 100644 --- a/sound/soc/qcom/lpass-sc7180.c +++ b/sound/soc/qcom/lpass-sc7180.c @@ -173,7 +173,8 @@ static int sc7180_lpass_dev_resume(struct device *dev) dev_err(dev, "sc7180 clk prepare and enable failed\n"); return ret; } - return ret; + + return 0; } static int sc7180_lpass_dev_suspend(struct device *dev) -- 2.38.1.584.g0f3c55d4c2-goog