mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-06 12:36:39 +07:00
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: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
f858275869
commit
e87d9f295a
@ -1219,8 +1219,7 @@ static int uvesafb_release(struct fb_info *info, int user)
|
||||
uvesafb_vbe_state_restore(par, par->vbe_state_orig);
|
||||
out:
|
||||
atomic_dec(&par->ref_count);
|
||||
if (task)
|
||||
uvesafb_free(task);
|
||||
uvesafb_free(task);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user