Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp181797iog; Fri, 24 Jun 2022 01:48:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tDvPPshu9Dx0SuhLjfgSisjV2suNyZ/bCqMDzUzfvfLvl0dZEkBouZcGfEoButRRL0yPNy X-Received: by 2002:a17:907:72d6:b0:722:e59a:72f4 with SMTP id du22-20020a17090772d600b00722e59a72f4mr12474747ejc.158.1656060488283; Fri, 24 Jun 2022 01:48:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656060488; cv=none; d=google.com; s=arc-20160816; b=FiQRWt3WVmEjMJtCMZLtbFIHPzmV7LtgOnj3dk+bNmQs0/wzgITX41bxYKda+ktd7s 58iy9LaZ6S54AwIAu4YI45nyJjdKej4qtUuxbhS8aHRRaQ9W3Unw0NILyZ+cU84DeL7i yypwoQe8XQqc59kxIiZQpBL+YuM4A5nIIXFsp/3KAvbJWHDA+nPGZauWHuOZX4zhKWpz AUlwG3pvr9/rNdP8dUs2KznkFsA540mkPihDSWq7Gk8olqpbN9MPdkOkQSrXrTQncx4J qJ09M15BvZ+pD3ZkTx6bh0RJ2pAdZyOTUQUE79dFe0xoq7uTB0Ui4nSGI4ngfHO3rdwn hCpQ== 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 :message-id:date:subject:cc:to:from; bh=H4BFPXKpP7jQYQLqNEm3SQjOeSrmJW8LfnHS4SL9beA=; b=PvzV397FTjgq2CjNq0Hzpm55DL6jTS+gHYad+AjYLGpvBN0Rgr19g6pcnBYzsNnh4P seVaplSulB7GGYRXU8jEUlEP0brW33j43DXixs1mLplv4iWaxwHHMYiiFNDY4gUXQrON iGKwZNrzAalvAfs3kPnzCONlBEXLNk4ix/cBvYmsYlmfaMFW1Po9DIr5R1IokteI4tW7 XQUF9PDPnMnDrSLuIEUH2zd3ZNbheFet5w+pIcG+WC8KmZ6tZGlhR5hYka+MN1Hw5yGc w8qXVC0xlf36E0S/deo6/6XwKO3wcXm4llzp2ddXAYW7glWhw93FMhviZOLBxbMXj6uH ES1g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw15-20020a170906478f00b006f44d992450si2129757ejc.11.2022.06.24.01.47.43; Fri, 24 Jun 2022 01:48:08 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231686AbiFXI2U (ORCPT + 99 others); Fri, 24 Jun 2022 04:28:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229584AbiFXI2M (ORCPT ); Fri, 24 Jun 2022 04:28:12 -0400 Received: from out30-54.freemail.mail.aliyun.com (out30-54.freemail.mail.aliyun.com [115.124.30.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5567B38 for ; Fri, 24 Jun 2022 01:27:55 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VHGRu2S_1656059267; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VHGRu2S_1656059267) by smtp.aliyun-inc.com; Fri, 24 Jun 2022 16:27:52 +0800 From: Jiapeng Chong To: lgirdwood@gmail.com Cc: broonie@kernel.org, perex@perex.cz, tiwai@suse.com, heiko@sntech.de, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] ASoC: rockchip: i2s: Fix missing error code in rockchip_i2s_probe() Date: Fri, 24 Jun 2022 16:27:45 +0800 Message-Id: <20220624082745.68367-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 The error code is missing in this code scenario, add the error code '-EINVAL' to the return value 'ret'. This was found by coccicheck: sound/soc/rockchip/rockchip_i2s.c:810 rockchip_i2s_probe() warn: missing error code 'ret'. Signed-off-by: Jiapeng Chong --- sound/soc/rockchip/rockchip_i2s.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c index d300eee9ddaa..0ed01624a2db 100644 --- a/sound/soc/rockchip/rockchip_i2s.c +++ b/sound/soc/rockchip/rockchip_i2s.c @@ -807,6 +807,7 @@ static int rockchip_i2s_probe(struct platform_device *pdev) i2s->bclk_off = pinctrl_lookup_state(i2s->pinctrl, "bclk_off"); if (IS_ERR_OR_NULL(i2s->bclk_off)) { dev_err(&pdev->dev, "failed to find i2s bclk_off\n"); + ret = -EINVAL; goto err_clk; } } -- 2.20.1.7.g153144c