From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49832C433F5 for ; Wed, 9 Mar 2022 01:22:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230402AbiCIBXw (ORCPT ); Tue, 8 Mar 2022 20:23:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230406AbiCIBWo (ORCPT ); Tue, 8 Mar 2022 20:22:44 -0500 Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8328FB54D6; Tue, 8 Mar 2022 17:19:57 -0800 (PST) Received: from relay6-d.mail.gandi.net (unknown [217.70.183.198]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 82E6DC86D9; Tue, 8 Mar 2022 23:32:09 +0000 (UTC) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 03765C0003; Tue, 8 Mar 2022 23:31:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1646782289; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YlCM3z0vt4xJuaDGP/qHthWWjPQ/iDmyI70ur1aJgMA=; b=ZeO298VTaZW4ZKPS+hbL1WnQkoxuOjCmgXkCIu5l9+mlTl+WzqybFHz15IKUn6dhK/iEJx 0RaZ+8+OOFTKo3+f4Kz1ZV4FC53HEwpC0rxmE4DTJiAfyRrmI4p0TyUedzsaJZLbW6wlAi PnHqquyAUoxVVoiX3PuKWCcFC7I26/boPZUnZI1rtrI7qzur9Kco4ZsLM8plhy1jCX5xcF QEU4vwldXDjJxoE7C7QivEi33hy0F/2uARucukhVeB1Eio82925hJnBiM/n1r4+IpV0f8v IgjNOagNWFZmSZ2zcd7pgSA3yUMKqKB5sAQ6zB7mocPxCz0tjFqpqyOwrx5rQw== From: Alexandre Belloni To: Jiasheng Jiang , a.zummo@towertech.it Cc: Alexandre Belloni , linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, patches@opensource.cirrus.com Subject: Re: [PATCH] rtc: rtc-wm8350: Handle error for wm8350_register_irq Date: Wed, 9 Mar 2022 00:31:25 +0100 Message-Id: <164678227866.114704.3399068049794620806.b4-ty@bootlin.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220303085030.291793-1-jiasheng@iscas.ac.cn> References: <20220303085030.291793-1-jiasheng@iscas.ac.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 3 Mar 2022 16:50:30 +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. > > Applied, thanks! [1/1] rtc: rtc-wm8350: Handle error for wm8350_register_irq commit: 5e086367298dfaa1617885e797c8a58873365f03 Best regards, -- Alexandre Belloni