mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 11:40:53 +07:00
PM / hibernate: Deletion of an unnecessary check 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: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
c68cfdc0a5
commit
6c45de0d51
@ -1375,7 +1375,7 @@ static int load_image_lzo(struct swap_map_handle *handle,
|
||||
kthread_stop(data[thr].thr);
|
||||
vfree(data);
|
||||
}
|
||||
if (page) vfree(page);
|
||||
vfree(page);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user