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: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
This commit is contained in:
parent
c116568689
commit
2b797d3321
|
@ -696,10 +696,9 @@ static void* matroxfb_crtc2_probe(struct matrox_fb_info* minfo) {
|
|||
if (!minfo->devflags.crtc2)
|
||||
return NULL;
|
||||
m2info = kzalloc(sizeof(*m2info), GFP_KERNEL);
|
||||
if (!m2info) {
|
||||
printk(KERN_ERR "matroxfb_crtc2: Not enough memory for CRTC2 control structs\n");
|
||||
if (!m2info)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
m2info->primary_dev = minfo;
|
||||
if (matroxfb_dh_registerfb(m2info)) {
|
||||
kfree(m2info);
|
||||
|
|
Loading…
Reference in New Issue