From: Christophe JAILLET Date: Thu, 6 May 2021 18:57:05 +0000 (+0200) Subject: video: fbdev: imxfb: Fix an error message X-Git-Tag: accepted/tizen/unified/20230118.172025~6402^2~28^2~431 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=767d724a160eb1cd00c86fb8c2e21fa1ab3c37ac;p=platform%2Fkernel%2Flinux-rpi.git video: fbdev: imxfb: Fix an error message '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") Reviewed-by: Uwe Kleine-König Signed-off-by: Christophe JAILLET Signed-off-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/d7b25026f82659da3c6f7159eea480faa9d738be.1620327302.git.christophe.jaillet@wanadoo.fr --- diff --git a/drivers/video/fbdev/imxfb.c b/drivers/video/fbdev/imxfb.c index 7f8debd..ad59825 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; }