Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp857687pxm; Thu, 3 Mar 2022 06:02:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyO59+Q/xWcdxttVM0EAgGRZ1vD7ER+d7FbF0erNkt1fbp9nObKp5AWwYjzn13EVs/OEuRs X-Received: by 2002:a17:906:3a83:b0:6d6:e54d:3264 with SMTP id y3-20020a1709063a8300b006d6e54d3264mr10619230ejd.96.1646316124667; Thu, 03 Mar 2022 06:02:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646316124; cv=none; d=google.com; s=arc-20160816; b=j3erORaigLTAmkxRNFHeEDMUfxnByLYqq8JA7rk3cX8swIBgPPDGl29qdN0haZ/cMT BIXEiQ/U/fTNZ0WV8vpFgxPbJT2J5C6Ksz2PvF4pRzTLIoLMPleYflYBKTnaEn6imAwC Ewhp1Pgxgn1oirlErRa4Y5r1DojpPjZjzl6Xhs8l9J1YJGHjFOLLxzBLN6A7WMMOw1dn SSFssdTn0PmXs2Y743G7z1WPT5EqYyEGRJmdee8jiNr/ePYImCLxrrRYe4NouY2HXryI N3RT9t9xg4Cn1lTYmRUar2DjDOBX9OsenA6cr0FjpusKQ+yhYA2uVTowX4CpUODiXScr 9fgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Wil96UH11D63VQZT9D+yQu3zLFJpjvNbnxG2lAUNVzY=; b=FW1bawjfEsSu6xdgljWtx6nPcDsq8ntb8QTiA5rxchooNpVWra9PPN7SeHwINOrBLY 8PZ8lDUIuiIoUZWEBX6J29deuIzT3LDHRDvVx3G38n4Mfn77YIzQHSGlzw7KuwVtg7tL BNddUu3n7rUztuGF94IQuuEHz4uMBoR5pGHyc/F2ExnxRZD1J1d+qmoZ8EJ4NPFgKKA+ I6xlLNQdo7EFdvtbScu+DJptyqm9XfTTSY/6Xjyd66fqnhmkf1x0ooX4HVNrJfnbjQWc nbpoLaw5sI0tGHDc9IFKwrabHzCrHOfDOgmS4W4WqV9HbvldK0zKcYgRIW5GxoaoNXJ0 xv8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=d0nOHZQI; 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 bm5-20020a170906c04500b006cec1b480basi1341186ejb.328.2022.03.03.06.01.35; Thu, 03 Mar 2022 06:02:04 -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=d0nOHZQI; 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 S233785AbiCCNkk (ORCPT + 99 others); Thu, 3 Mar 2022 08:40:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233781AbiCCNki (ORCPT ); Thu, 3 Mar 2022 08:40:38 -0500 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71DFA188A2E for ; Thu, 3 Mar 2022 05:39:53 -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 2235lqoE030833; Thu, 3 Mar 2022 07:39:40 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=PODMain02222019; bh=Wil96UH11D63VQZT9D+yQu3zLFJpjvNbnxG2lAUNVzY=; b=d0nOHZQIdPfdrj82Bq6f2ecHOSRjadeUwWvQXDGsM/GOrxLT1rx17goUDbRcYJIa5cz1 ozmhirG4mdlw6MylVNiMXwsyIEee50fZAJE4OkZAKYAB4+DTH/3vxIQP3GuMI2JHGI+r vNzkDgqQBbcXGa0QOuLhVeVViRY9wWsfp70vW9q2SfpiKuh6q634cwmTETLadU4R85If FfHiPUeiN8Nf3HmBQZEGIwC4OpzQFsV3ZcSezI/MH00qD9n33ADcCkq0DLh6WqanRqBD S0ln6YtHPWmlc2oW2BUoA1wv8M+H9NmQTyMgmY1V3D5Joki89yMzkZmtL/eTH6/chUN6 iw== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3ejncq8mbk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 03 Mar 2022 07:39:40 -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 13:39:38 +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 13:39:38 +0000 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 8E3217C; Thu, 3 Mar 2022 13:39:38 +0000 (UTC) Date: Thu, 3 Mar 2022 13:39:38 +0000 From: Charles Keepax To: Jiasheng Jiang CC: , , , , Subject: Re: [PATCH] rtc: rtc-wm8350: Handle error for wm8350_register_irq Message-ID: <20220303133938.GP38351@ediswmail.ad.cirrus.com> References: <20220303085030.291793-1-jiasheng@iscas.ac.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220303085030.291793-1-jiasheng@iscas.ac.cn> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-ORIG-GUID: q-McmAQFGKQjxFEtF2jzsa19I2Ed8unW X-Proofpoint-GUID: q-McmAQFGKQjxFEtF2jzsa19I2Ed8unW 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 On Thu, Mar 03, 2022 at 04:50:30PM +0800, Jiasheng Jiang wrote: > As the potential failure of the wm8350_register_irq(), > it should be better to check it and return error if fails. > Also, it need not free 'wm_rtc->rtc' since it will be freed > automatically. > > Fixes: 077eaf5b40ec ("rtc: rtc-wm8350: add support for WM8350 RTC") > Signed-off-by: Jiasheng Jiang > --- Acked-by: Charles Keepax Thanks, Charles