Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp45349pxj; Fri, 7 May 2021 03:24:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuCpSodHWdXZVMhTOIqQjDzDNfVqqNbFjOcDEz4fe/DUM7R2nT0f/Q7sbsvbsHareUXrrc X-Received: by 2002:a65:48c2:: with SMTP id o2mr8955438pgs.376.1620383041322; Fri, 07 May 2021 03:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620383041; cv=none; d=google.com; s=arc-20160816; b=Bg8MWbmlreuKsT50lxZG3HyCxAyet3tNrXTcq/edWhb81UO8qF0+aqBaxt0b+woQsS kfMv+5Wokk2a1MZzNQrhMkXuvfi6UGVoqxAXzRabWf98Awr0X+a9zB+r1h43XNjUnTSK BOKkyUv3Xmo4H2giF6JcxecwWneJpUDgqY+n2d6GPDa80fSk2PJMhraNfu7wRH9CVH/M 0iSCM/gNLx2LGyYGI5FQOxE+6Fo+MoUgr4l4Abj/gXKnUf2MjMEMFpR1Y5GUEwpJwL44 yhKAM+vLd+bvN0E0QnOxY+Kz8f4z3lnbNgm+cG7nPNwASJ/jsehXeFRIz6+oLl9VEE4x tYaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=dZ07/c0Uj+DbTkfGZj/2XxgxeGr2kEElDhH+0M5Eacs=; b=H60zn5BeiOkRnGN3hWFCM5N99zfj2+LXOGV2zNRvhDPpEKRgiGYMB/kPA6LumkGA4g Ed7zioLEKtQMR1w8TIF/T7bP+93b4e6K4SFiW4o/iUsN0A+I5UyZ+VFd4cUSZgpJV+Qy LSV7xs7pl23OxIeravxA5E22azVdLMNRdFaegxEWPFboFIvGZMazqTBrRv9jNkQkhrrs SL/UKNComr3j0Mk7CDob1XVCxD2Vp4qKDdW85h1e/KKX2fUhpCcRukX6KlKrSzklvsYY zKDRR+K1IBX7w3zqHx3xlfX8kAFeFrLewCE62phEJEViBeZSNcRvzhtyyHnJnFydUhfO F1qg== 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 q14si7901787plb.47.2021.05.07.03.23.46; Fri, 07 May 2021 03:24:01 -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 S235020AbhEGHMX (ORCPT + 99 others); Fri, 7 May 2021 03:12:23 -0400 Received: from smtp04.smtpout.orange.fr ([80.12.242.126]:21552 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234992AbhEGHMV (ORCPT ); Fri, 7 May 2021 03:12:21 -0400 Received: from [192.168.1.18] ([86.243.172.93]) by mwinf5d51 with ME id 1jBK2500L21Fzsu03jBKw6; Fri, 07 May 2021 09:11:21 +0200 X-ME-Helo: [192.168.1.18] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Fri, 07 May 2021 09:11:21 +0200 X-ME-IP: 86.243.172.93 Subject: Re: [PATCH] video: fbdev: imxfb: Fix an error message To: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= Cc: s.hauer@pengutronix.de, kernel@pengutronix.de, shawnguo@kernel.org, festevam@gmail.com, linux-imx@nxp.com, j.beisert@pengutronix.de, krzysztof.h1@poczta.fm, linux-fbdev@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org References: <20210507050503.iwrcis2xzhjjthmp@pengutronix.de> From: Christophe JAILLET Message-ID: <5cd9c8de-acd9-9594-38a0-62ecf5734c10@wanadoo.fr> Date: Fri, 7 May 2021 09:11:19 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210507050503.iwrcis2xzhjjthmp@pengutronix.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 07/05/2021 ? 07:05, Uwe Kleine-K?nig a ?crit?: > Hello Christophe, > > On Thu, May 06, 2021 at 08:57:05PM +0200, Christophe JAILLET wrote: >> 'ret' is known to be 0 here. >> No error code is available, so just remove it from the error message. >> >> Fixes: 72330b0eeefc ("i.MX Framebuffer: Use readl/writel instead of direct pointer deref") >> Signed-off-by: Christophe JAILLET >> --- >> drivers/video/fbdev/imxfb.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/video/fbdev/imxfb.c b/drivers/video/fbdev/imxfb.c >> index 7f8debd2da06..ad598257ab38 100644 >> --- a/drivers/video/fbdev/imxfb.c >> +++ b/drivers/video/fbdev/imxfb.c >> @@ -992,7 +992,7 @@ static int imxfb_probe(struct platform_device *pdev) >> info->screen_buffer = dma_alloc_wc(&pdev->dev, fbi->map_size, >> &fbi->map_dma, GFP_KERNEL); >> if (!info->screen_buffer) { >> - dev_err(&pdev->dev, "Failed to allocate video RAM: %d\n", ret); >> + dev_err(&pdev->dev, "Failed to allocate video RAM\n"); >> ret = -ENOMEM; >> goto failed_map; >> } > > Reviewed-by: Uwe Kleine-K?nig > > Are you using this driver, or did you find that problem using some > static checker? > No, I'm not using this driver AFAIK. It has been spotted by coccinelle with a hand-made script which tries to find places where error code is used before being initialized. The script in it-self is not really interesting. It is easy to write and my own version trigger way to much false positives. CJ > Best regards > Uwe >