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

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

video: uvesafb: Deletion of an unnecessary check before the function call "uvesafb_free"



The uvesafb_free() function tests whether its argument is NULL and then
returns immediately. 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 f8582758
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -1219,7 +1219,6 @@ static int uvesafb_release(struct fb_info *info, int user)
	uvesafb_vbe_state_restore(par, par->vbe_state_orig);
	uvesafb_vbe_state_restore(par, par->vbe_state_orig);
out:
out:
	atomic_dec(&par->ref_count);
	atomic_dec(&par->ref_count);
	if (task)
	uvesafb_free(task);
	uvesafb_free(task);
	return 0;
	return 0;
}
}