Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3773124yba; Mon, 29 Apr 2019 08:17:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJ1vf1bVOtiPUawG6UF816wOG4QC242Zb9apNSUVZdcx4iJCxhrrWMV4P+g/MgrYg1v9nD X-Received: by 2002:a62:ee17:: with SMTP id e23mr2426029pfi.80.1556551035409; Mon, 29 Apr 2019 08:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556551035; cv=none; d=google.com; s=arc-20160816; b=uLE0LJziy6tP9CvpouBYW1F+wypPIjk7Xl5Kw5FFoo/grXeL1f2RnGpgXtY2imXcJE FaBK/RfkAh2crbabePSOFClmwjTEYizsTFK9tuzsGqwexi274R2fyz7PiRbcL2hI7mnV +sJYrNBGn7xRW8dDHoTFImM5OfmKgZpYVDxrc1shsdmJcn+Zwnw/ciYkv+U+NAirOFho bC171olEInsda+jW5tugIL7xrWJJlh2T62v75TSvaY4g63VKbLWXHxD/k12aKGIMNr6z 9D++GDbO8QcaAV4uVwvJT3XQk/vYErvPuXo2oCv0Usc9znxof8NwT3Q5nfzdx1XYQ/1f Q91g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=RK81NmYprudRUMWGncLCVApzGFuqLPkdmEH67pLUFyc=; b=tHdBcxEN/LHi0kGz7hJddJOh8toOPSYRBalWBsVmdpOdm9jBCRMzhdxAMcGSENsAtQ VczzoI/6vrmkpFUVaEQNo3c3ey3eqZEw/CZrEONY3E4e/XLPm6vEmhI3GvPE+DzVHZFY HKmU0igj8fBLQxl/9W4vJ3mP9D2958zgrTi9eTLRgOTV4uAuI/rqA7N8dlx3muGWLcLF Tna+W3g+oa1tOEstPFQ9rVjge9bsEu/0FXBusAPT/IrueGRIVlBAj8nI+oqsCi6blBTD P9bvuqspfxdfvT0tyRi9YWA4IGtARUgiB8eQOQV1JK+xg/R5I6m0nYyYd5JaLKhZn2zH rd2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d124si18291736pfc.114.2019.04.29.08.16.58; Mon, 29 Apr 2019 08:17:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728448AbfD2PPT (ORCPT + 99 others); Mon, 29 Apr 2019 11:15:19 -0400 Received: from baptiste.telenet-ops.be ([195.130.132.51]:53464 "EHLO baptiste.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728376AbfD2PPS (ORCPT ); Mon, 29 Apr 2019 11:15:18 -0400 Received: from ramsan ([84.194.111.163]) by baptiste.telenet-ops.be with bizsmtp id 6FFG200063XaVaC01FFGzZ; Mon, 29 Apr 2019 17:15:16 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1hL7zw-0002Sb-1U; Mon, 29 Apr 2019 17:15:16 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1hL7zv-0005m0-Vk; Mon, 29 Apr 2019 17:15:16 +0200 From: Geert Uytterhoeven To: Thomas Gleixner , Jason Cooper , Marc Zyngier Cc: linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] irqchip/renesas-intc-irqpin: Remove devm_kzalloc() error printing Date: Mon, 29 Apr 2019 17:15:14 +0200 Message-Id: <20190429151514.22150-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to print a message if devm_kzalloc() fails, as the memory allocation core already takes care of that. Signed-off-by: Geert Uytterhoeven --- drivers/irqchip/irq-renesas-intc-irqpin.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-renesas-intc-irqpin.c b/drivers/irqchip/irq-renesas-intc-irqpin.c index 8c039525703f7c9a..04c05a18600cf71f 100644 --- a/drivers/irqchip/irq-renesas-intc-irqpin.c +++ b/drivers/irqchip/irq-renesas-intc-irqpin.c @@ -389,10 +389,8 @@ static int intc_irqpin_probe(struct platform_device *pdev) int k; p = devm_kzalloc(dev, sizeof(*p), GFP_KERNEL); - if (!p) { - dev_err(dev, "failed to allocate driver data\n"); + if (!p) return -ENOMEM; - } /* deal with driver instance configuration */ of_property_read_u32(dev->of_node, "sense-bitfield-width", -- 2.17.1