Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1873450pxm; Fri, 4 Mar 2022 05:19:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6WOQOATDLQb0VJa+A30v6xz3wyUq/0GPZP4cmoWramp5jV4A2jocyH4t5RN4+hz29qSJu X-Received: by 2002:a63:e4e:0:b0:372:f055:5e12 with SMTP id 14-20020a630e4e000000b00372f0555e12mr34693031pgo.485.1646399971782; Fri, 04 Mar 2022 05:19:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646399971; cv=none; d=google.com; s=arc-20160816; b=NbeKYe54nwTU3sidqOymOYUpeRTs79H3Zef5Pvh1NUHL+MVRY2UB9edZPWDXBInBQo LoTf9R/PL45tIpGSi1Swta1N0jqM072ERbHL51irwK0us1szJ5Rv6vn0heD2QNR70tFu Wa+9Rr2wSTPEZ7OiB1ICGr6+sS1S3lkM6AY8uLruy2WNvd97Ccfp2VdyiUiBPFPIzBXR lQiQ5ft92IJvLNKMHJeNr9kMub3I8qHp2+A2Zx3Bc+krqs/Gdb797mXb9hgXNHPDLbRT +BHKK/e0q2plWmr5vWSHdF4PIdOhASf0yk+2M9kxTrjaUkVbuBEyIwuTlAiHFtjlZk2l 3l+A== 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=gWVaa7qpEsmj843gBspaEkn5/JN/8DdANNMd+EijIzw=; b=pgW+HoMB822sVAgud7dSLNzoT8BFnn/NneJKd6cbXU8oiwaLvoewjmofpCmIv9dV7G vOZnEoK6PAmfeDvfpu9zRoEW72TyErLQF018Z/QRtZuXeyNbmrVy65N22m5BWkMB8+EU WDo4rmJ349Dm/tFLrIso4YtUk4vZHTsRYPQqy0hOlJKDSpH2DokGmlp6DCLjUCh8UMj9 A8fgE+c/dGxSmHK6p3uBOMmcnc3H3GDrbRHLAI9fPJJZSazw6nZCRP4OKzzc6VR5qivi K0CIsQs4NSVczuuCxU3CogSlz0iBtiHlgeM3LARa3Gq7721yKhH0ILNdwoq6+xEAbZcY NqFQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h1-20020a63b001000000b00364b34c8d9csi4987012pgf.402.2022.03.04.05.19.15; Fri, 04 Mar 2022 05:19:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233228AbiCDCmL (ORCPT + 99 others); Thu, 3 Mar 2022 21:42:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232738AbiCDCmJ (ORCPT ); Thu, 3 Mar 2022 21:42:09 -0500 Received: from cstnet.cn (smtp84.cstnet.cn [159.226.251.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4CF8D171291 for ; Thu, 3 Mar 2022 18:41:22 -0800 (PST) Received: from localhost.localdomain (unknown [124.16.138.126]) by APP-05 (Coremail) with SMTP id zQCowAC3vNhJfCFiHSYYAg--.7764S2; Fri, 04 Mar 2022 10:41:13 +0800 (CST) From: Jiasheng Jiang To: ckeepax@opensource.cirrus.com Cc: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Jiasheng Jiang Subject: Re: Re: [PATCH] ASoC: wm8350: Handle error for wm8350_register_irq Date: Fri, 4 Mar 2022 10:41:12 +0800 Message-Id: <20220304024112.391990-1-jiasheng@iscas.ac.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: zQCowAC3vNhJfCFiHSYYAg--.7764S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYO7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28Cjx kF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWDJVCq3wA2z4x0Y4vE2Ix0cI8I cVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_Cr1j6rxdM28EF7xvwVC2z2 80aVCY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAK zVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUGVWUXwAv7VC2z280aVAFwI0_Jr0_Gr1lOx 8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIF xwCY02Avz4vE14v_Gr1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2 IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v2 6r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2 IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVW3JVWrJr1lIxAIcVC2z280 aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43 ZEXa7VU1sYFtUUUUU== X-Originating-IP: [124.16.138.126] X-CM-SenderInfo: pmld2xxhqjqxpvfd2hldfou0/ X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 On Thu, Mar 03, 2022 at 09:38:34PM +0800, Charles Keepax wrote: >> if (ret != 0) >> - return ret; >> + goto err; > > I would probably just leave this as a return, nothing is gained > changing it to a goto. > >> >> + ret = wm8350_register_irq(wm8350, WM8350_IRQ_CODEC_JCK_DET_R, >> wm8350_hpr_jack_handler, 0, "Right jack detect", >> priv); >> - wm8350_register_irq(wm8350, WM8350_IRQ_CODEC_MICSCD, >> + if (ret != 0) >> + goto free_JCK_DET_L; > > Probably better to use non-caps here, having caps in a label is a > little unusual. Thansk, I have submitted v2 to solve the problems. Jiang