Commit 2b797d33 authored by Markus Elfring's avatar Markus Elfring Committed by Bartlomiej Zolnierkiewicz

video: matroxfb: Delete an error message for a failed memory allocation in matroxfb_crtc2_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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent c1165686
...@@ -696,10 +696,9 @@ static void* matroxfb_crtc2_probe(struct matrox_fb_info* minfo) { ...@@ -696,10 +696,9 @@ static void* matroxfb_crtc2_probe(struct matrox_fb_info* minfo) {
if (!minfo->devflags.crtc2) if (!minfo->devflags.crtc2)
return NULL; return NULL;
m2info = kzalloc(sizeof(*m2info), GFP_KERNEL); m2info = kzalloc(sizeof(*m2info), GFP_KERNEL);
if (!m2info) { if (!m2info)
printk(KERN_ERR "matroxfb_crtc2: Not enough memory for CRTC2 control structs\n");
return NULL; return NULL;
}
m2info->primary_dev = minfo; m2info->primary_dev = minfo;
if (matroxfb_dh_registerfb(m2info)) { if (matroxfb_dh_registerfb(m2info)) {
kfree(m2info); kfree(m2info);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment