Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5074874pxj; Wed, 9 Jun 2021 08:35:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfs7GzY8Oakh1UEGlU6COgP223iiL/09OLufSgqOw7ld7MG4gqueRTem7bLQDLXEMw/2GZ X-Received: by 2002:a17:906:3888:: with SMTP id q8mr467337ejd.15.1623252915071; Wed, 09 Jun 2021 08:35:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623252915; cv=none; d=google.com; s=arc-20160816; b=SEFglj02FLAuDIEDr6xEEGYXWIb01gpKUAM7mbK0cjUf9vVaRewo5/+dnzQo3tE/0y fVMtKh27vOexrOH05FPNYhMJOFTrt5829/fdh2MmYRzP/tEoPbAa9Kxv+p+wsvKCwJ9m Zxh4dKjf5hd/hVmBX8zl5S6MNCixafvk+cryY2/NKTUQCmlA6jwfCh+vKLS+k2WjK8Qu L+PPmb0vJkOCk+KdO3lV2onPXWlk5DcHKeP1Q+oeVjkbKE4m4ymdvVlntcSdyNbc386J gbXQ+clmF914KWngcV+cbdiasQFIHHyN8FTqTtPMKV3e0zuqKNC2JE70GAZS6gJJBpmZ /7Bg== 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=79mBVmAqILrgu8caagg0/siBq4RGNILFq897u+t6c2Y=; b=QCctwVrxs8qDS+pIjJRGR411SLZGThg7XKgMDJYvTr9PN/mToqp8DnG3fXEnubKl+K mlHwly+Vuml1edy5crYdSpt5H5PjMbsUTUh2Myqh+bRc41L/zyWbhoCW5Eah86pPmA0Q 9oWlbYnddQGqSjm6RusgMGcbdKte23UZVyntRxJdxkaEo6t/9rvbwCJGXwY0i4IXNnf5 G5xXhROsmreVSakX0Pf4PpbwaPE1HXTRVZGo+io5X7XiRXjbqI/xniHFGlEeBIaEOOmQ UBEmViGuKzTr5MlmxbHKx1U8pG/0UsgzbKTTjvu25W2K/YFHT/VApS8hOj2EwBJ98TQP vRaQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v9si38959eds.500.2021.06.09.08.34.51; Wed, 09 Jun 2021 08:35:15 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235875AbhFIONx (ORCPT + 99 others); Wed, 9 Jun 2021 10:13:53 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:8119 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233898AbhFIONx (ORCPT ); Wed, 9 Jun 2021 10:13:53 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G0TVm5mxnzZcDJ; Wed, 9 Jun 2021 22:09:04 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 9 Jun 2021 22:11:54 +0800 Received: from thunder-town.china.huawei.com (10.174.177.72) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 9 Jun 2021 22:11:54 +0800 From: Zhen Lei To: Thomas Gleixner , Marc Zyngier , "Shawn Guo" , Sascha Hauer , "Pengutronix Kernel Team" , Fabio Estevam , "NXP Linux Team" , linux-arm-kernel , linux-kernel CC: Zhen Lei Subject: [PATCH 1/1] irqchip/irq-imx-gpcv2: remove unnecessary oom message Date: Wed, 9 Jun 2021 22:11:50 +0800 Message-ID: <20210609141150.14637-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.177.72] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes scripts/checkpatch.pl warning: WARNING: Possible unnecessary 'out of memory' message Remove it can help us save a bit of memory. Signed-off-by: Zhen Lei --- drivers/irqchip/irq-imx-gpcv2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-imx-gpcv2.c b/drivers/irqchip/irq-imx-gpcv2.c index 7031ef44de4f30c..5b5a365dbd5e447 100644 --- a/drivers/irqchip/irq-imx-gpcv2.c +++ b/drivers/irqchip/irq-imx-gpcv2.c @@ -228,10 +228,8 @@ static int __init imx_gpcv2_irqchip_init(struct device_node *node, } cd = kzalloc(sizeof(struct gpcv2_irqchip_data), GFP_KERNEL); - if (!cd) { - pr_err("%pOF: kzalloc failed!\n", node); + if (!cd) return -ENOMEM; - } raw_spin_lock_init(&cd->rlock); -- 2.26.0.106.g9fadedd