Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4820257yba; Tue, 30 Apr 2019 05:03:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzw63FhEnL1dnczBX3Hn4C7t4w2Gv4vdJy7rxn2KxfvmwAi6Ic48gBz8o49i7kXIgWzYwSD X-Received: by 2002:a63:6fcd:: with SMTP id k196mr65114902pgc.238.1556625814720; Tue, 30 Apr 2019 05:03:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556625814; cv=none; d=google.com; s=arc-20160816; b=UeLo7/9M1FtEqqw0VxufAkZxncE70lK+siVL5WHL2jPH2Fps9sv9Z4fVyJsN9xxUx4 RUhQVm1keY/P8LFOoazVbBooje6r5GEcXA0haodgqafdbRmgcXB2qyVLtlsXvuq56c5k 6Yd3F4Og7GkP67PChSpnIWERtql47i8RII/y3NAQJfLMpVTKLVMIEUC7rjDbpqCcUqTX k4j7b42oqWxOSEYj4pCdUI8aiUgHiJW/gSXsu8HczCUD6bD2SffTdXvwewxZ7+w+nybO wOHB6aneQJ1T37JNlTiIbd5KtfnE0ncydzlZKXJt9QqCEMjfe6Njui8LFdrjeQlZvL9d 60jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=68G41fzqy/t8KAzyAUuR7DOWW+Zvyi6v+m6lvfvvc+0=; b=PuaJCnkWM8UuyE1weQsMasKLI5wRoPSFfJrBXid1DtG1aCAGq9N+lub+ZHDai6dF3a cmk+MzIQF1dR360ROcDPPK3ynOrXBWHqUcAOJhzpeuKgWYOJuLng9WXLaEMGShwwhTlP 4V8IXaeJhJEKYhhQd+ct6QIhHwUF5HzRj7/wN2SSndmbmMoYiEOTjTCzNTS2fWq0YzlD ok4BUDGk005Rx4JvV0LYSzs/DrbzYQN1+z+h8DMT5vGax3JZR0lpx8F2eVYirLpMuHeV nnPN7OKr9MeX7GQuzZ3LZnR13oDMkVwHhq7v2ywNaTqivghRmHTPeDc0K9vtKJu1rQ4y HE3Q== 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 w23si38358586plk.109.2019.04.30.05.03.15; Tue, 30 Apr 2019 05:03:34 -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 S1726694AbfD3L7y (ORCPT + 99 others); Tue, 30 Apr 2019 07:59:54 -0400 Received: from mail-vk1-f196.google.com ([209.85.221.196]:40068 "EHLO mail-vk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727634AbfD3L7v (ORCPT ); Tue, 30 Apr 2019 07:59:51 -0400 Received: by mail-vk1-f196.google.com with SMTP id l17so3026917vke.7; Tue, 30 Apr 2019 04:59:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=68G41fzqy/t8KAzyAUuR7DOWW+Zvyi6v+m6lvfvvc+0=; b=Avz5LXAVgTu/W4Tll+6H17nun9by9PM3UnmeIs9qcFKhS4s2ENyc25V1ItsYeOOrJf M2bwTH3BV766g+AjXsWbhx/rskvnirHtZoE+dFF6dXKSDWIcMW3OXLqjZ/XBhSFcjAX6 biiuuo++/4LMeJy4/WylFfkULHklOhGNEvMXdWtdU0eh10euO41V55fMAViI0RFnshqT tZ7P3+8BwRW/hWDnkXWep3fjFuAnudlqBR81h0verHToztgS4AizEQg/kt5OPU7as8Tp NGtSrVcfBEMIuHzNuZrTOBSYjKdCsgC8EvXLuHfskI2RaDXfv7DQx741XVhglNidi7ll CdwA== X-Gm-Message-State: APjAAAXV/iJX+OyPjEgOf5JhVgofaDq6lvaliXtkSmj1JfcN6cp8vnL9 Qn0UC2f06acLpBhJu4QtQD2CsvdUHnpsXXyQ/z0= X-Received: by 2002:a1f:17cd:: with SMTP id 196mr660349vkx.83.1556625590532; Tue, 30 Apr 2019 04:59:50 -0700 (PDT) MIME-Version: 1.0 References: <20190429152006.22593-1-geert+renesas@glider.be> <20190429152006.22593-3-geert+renesas@glider.be> <3ecf87e2-4e70-9159-a364-d41f1b744f7b@cogentembedded.com> In-Reply-To: <3ecf87e2-4e70-9159-a364-d41f1b744f7b@cogentembedded.com> From: Geert Uytterhoeven Date: Tue, 30 Apr 2019 13:59:39 +0200 Message-ID: Subject: Re: [PATCH 2/5] irqchip/renesas-irqc: Remove devm_kzalloc()/ioremap_nocache() error printing To: Sergei Shtylyov Cc: Geert Uytterhoeven , Thomas Gleixner , Jason Cooper , Marc Zyngier , Linux-Renesas , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sergei, On Tue, Apr 30, 2019 at 10:12 AM Sergei Shtylyov wrote: > On 29.04.2019 18:20, Geert Uytterhoeven wrote: > > There is no need to print a message if devm_kzalloc() or > > Just kzalloc() in this case. Thanks, silly copy-and-paste error. > > --- a/drivers/irqchip/irq-renesas-irqc.c > > +++ b/drivers/irqchip/irq-renesas-irqc.c > > @@ -173,7 +172,6 @@ static int irqc_probe(struct platform_device *pdev) > > /* ioremap IOMEM and setup read/write callbacks */ > > p->iomem = ioremap_nocache(io->start, resource_size(io)); > > if (!p->iomem) { > > - dev_err(&pdev->dev, "failed to remap IOMEM\n"); > > ret = -ENXIO; > > -ENOMEM? I'd say yes, except that this error code is removed in patch [5/5], so I don't think it's worth changing it in this patch. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds