提交 c97d7879 编写于 作者: M Markus Elfring 提交者: Bartlomiej Zolnierkiewicz

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: NMarkus Elfring <elfring@users.sourceforge.net>
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: NBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
上级 2b797d33
...@@ -969,7 +969,6 @@ static int clcdfb_probe(struct amba_device *dev, const struct amba_id *id) ...@@ -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); fb = kzalloc(sizeof(struct clcd_fb), GFP_KERNEL);
if (!fb) { if (!fb) {
printk(KERN_INFO "CLCD: could not allocate new clcd_fb struct\n");
ret = -ENOMEM; ret = -ENOMEM;
goto free_region; goto free_region;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册