Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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);