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

Commit 2daff4d4 authored by Markus Elfring's avatar Markus Elfring Committed by Tomi Valkeinen
Browse files

video: smscufx: Deletion of unnecessary checks before the function call "vfree"



The vfree() function performs also input parameter validation. Thus the test
around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 177c0386
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1142,7 +1142,6 @@ static void ufx_free_framebuffer_work(struct work_struct *work)
		fb_dealloc_cmap(&info->cmap);
	if (info->monspecs.modedb)
		fb_destroy_modedb(info->monspecs.modedb);
	if (info->screen_base)
	vfree(info->screen_base);

	fb_destroy_modelist(&info->modelist);
@@ -1743,7 +1742,6 @@ static int ufx_usb_probe(struct usb_interface *interface,
				fb_dealloc_cmap(&info->cmap);
			if (info->monspecs.modedb)
				fb_destroy_modedb(info->monspecs.modedb);
			if (info->screen_base)
			vfree(info->screen_base);

			fb_destroy_modelist(&info->modelist);