Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1440295ybt; Thu, 2 Jul 2020 05:38:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXMBFP9VALaTtfnjZi82JZSb9QusKV0cOZz8fNn0HWIsZ2JJFcjO9xKPy5GssQNZcHAb+C X-Received: by 2002:a17:906:84ef:: with SMTP id zp15mr22387544ejb.3.1593693514980; Thu, 02 Jul 2020 05:38:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593693514; cv=none; d=google.com; s=arc-20160816; b=p9+F7t8RCgh1kquJgzW/ukHiVNrt+fiCSoaIMZXv3YVwCo4Zgv9iakr2Y1QzMRAmjI TZz01SEmE8YTt2nDmkLNhX04Limx4ds6FpNJbmy0dOGOLLxSVEZEujvyRdr/9ist7MxH Ers9m6Zcq7pK/gFv1n8c1Hxhvhq5+nmXhDwdo4Gpx8ByNgbQtuKFbzNKmy7Lt6AeoAtz LqIxWq6zJdD3DqxBlrwQTPAv99a6lEhXZsmwyl943oxlF94q/2z1bagCSaGangdaiu4Y 8dPONt4KBZgTRpdwIk0TXw8GmQoYrgAzZ7EnwChiMyhsxACnfJ/55ei9C6RCQFWLpJXv wlrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=q8SYc4dAy092A2Dxm4H7W9LvoVuVhV9RL6QaAfw+0O8=; b=SLyNruMZnfnqzhIFo3M88tl/3yoHuQF0Z92DPR+PvksUCsWbHMlGJ7FFiD1BiELCNL vtiQ9zjRzvAButaFDYrXEdhtMG6gUHo9iUezOJ87EhO0WKXYM8/DralNKfFr6mUcvqxu CKxduw9yLO3GZWQurf1V2OU+kaX3Cf0BIWU+6B5zOGBuEVz/HKWMiAbXacQE39y7cIoL nDvnGtQjcoPtBBEbOb/GvTMJdot6zkr1ma1G4wC5Y86t6papH/KG6BC0S/ZqQI3IwwiX ifsmpqt/9lZ+l+m4ZBhNWejh0jwc4hc2UXPvmyVWZdnuAaPMU08RSf8Dk4qmRBDMgE85 FnIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n10si5716980ejk.580.2020.07.02.05.38.12; Thu, 02 Jul 2020 05:38:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728917AbgGBMgH (ORCPT + 99 others); Thu, 2 Jul 2020 08:36:07 -0400 Received: from mail.loongson.cn ([114.242.206.163]:46530 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727847AbgGBMgH (ORCPT ); Thu, 2 Jul 2020 08:36:07 -0400 Received: from [10.130.0.52] (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxL2uu1P1eaIZOAA--.7585S3; Thu, 02 Jul 2020 20:35:59 +0800 (CST) Subject: Re: [v4 02/14] irqchip/csky-apb-intc: Fix potential resource leaks To: Markus Elfring , Thomas Gleixner , Jason Cooper , Marc Zyngier , Guo Ren , linux-csky@vger.kernel.org References: <1593569786-11500-1-git-send-email-yangtiezhu@loongson.cn> <1593569786-11500-3-git-send-email-yangtiezhu@loongson.cn> <564ffff9-6043-7191-2458-f425dd8d0c11@web.de> <1a0e007a-db94-501b-4ab9-0bb479ec093b@loongson.cn> <971c649e-fe07-3771-6fea-f5aaeaf090ad@web.de> <41b48aa5-e5b2-0257-8b3d-07e1b86634b4@web.de> <0726ddc2-6b01-2ac8-d5bf-74c3df36b6ef@loongson.cn> <14cacb4e-d687-dfc4-8ad8-26f9f1050a0e@web.de> Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org From: Tiezhu Yang Message-ID: <856f5c62-d731-fc3c-0e41-0c2d8b4e24a3@loongson.cn> Date: Thu, 2 Jul 2020 20:35:58 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <14cacb4e-d687-dfc4-8ad8-26f9f1050a0e@web.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf9DxL2uu1P1eaIZOAA--.7585S3 X-Coremail-Antispam: 1UD129KBjvdXoWrtrW5tF1DAr4DWFW5Zr4DXFb_yoW3ArX_Cr n0yrs2934DJa13tFn3KwsFqFnYgr98W3Z2vayrCFZrZ3s3G3ZrZayfGFyfAw1xXFWrCr9I kr1Y9r9YkFZxXjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbs8YjsxI4VWDJwAYFVCjjxCrM7AC8VAFwI0_Gr0_Xr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I 8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI 64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r106r15McIj6I8E87Iv67AKxVWxJVW8Jr 1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcVAKI48JMxk0xIA0c2IEe2xFo4CEbIxvr21l c2xSY4AK67AK6ryUMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I 0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWU tVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcV CY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Wr1j6rW3Jr1lIxAIcVC2z280 aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43 ZEXa7IU8bTm3UUUUU== X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/02/2020 08:24 PM, Markus Elfring wrote: >>>>>>> +++ b/drivers/irqchip/irq-csky-apb-intc.c > … >> Let us keep it as it is > I propose to reconsider also this view. > > >> to make the code clear and to avoid the alignment issue: >> >> ret = foo(); >> if (ret) { >> ret = -ENOMEM; > How do you think about to delete this assignment if you would like to > reuse the return value from a call of the function “irq_alloc_domain_generic_chips”? OK, looks good to me, thank you. > > >> goto ... >> } > > Please apply a known script also for the purpose to achieve consistent indentation. > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/scripts/checkpatch.pl?id=cd77006e01b3198c75fb7819b3d0ff89709539bb#n3301 OK > > Regards, > Markus