From: Markus Elfring Date: Wed, 28 Mar 2018 14:34:29 +0000 (+0200) Subject: video: ARM CLCD: Delete an error message for a failed memory allocation in clcdfb_probe() X-Git-Tag: v4.17-rc1~63^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c97d7879f8cd3d1a35ca83cc60d70cfda71fa878;p=thirdparty%2Flinux.git video: ARM CLCD: Delete an error message for a failed memory allocation in clcdfb_probe() Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Cc: Russell King Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/video/fbdev/amba-clcd.c b/drivers/video/fbdev/amba-clcd.c index 36d25190b48c8..79f5ebf23fcd9 100644 --- a/drivers/video/fbdev/amba-clcd.c +++ b/drivers/video/fbdev/amba-clcd.c @@ -969,7 +969,6 @@ static int clcdfb_probe(struct amba_device *dev, const struct amba_id *id) fb = kzalloc(sizeof(struct clcd_fb), GFP_KERNEL); if (!fb) { - printk(KERN_INFO "CLCD: could not allocate new clcd_fb struct\n"); ret = -ENOMEM; goto free_region; }