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

Commit 597c338f authored by Benjamin Romer's avatar Benjamin Romer Committed by Greg Kroah-Hartman
Browse files

staging: unisys: fix NULL comparison in destroy_controlvm_payload_info()



Just remove the NULL from the check and test the pointer directly.

Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f118a39b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1299,7 +1299,7 @@ initialize_controlvm_payload_info(HOSTADDRESS phys_addr, u64 offset, u32 bytes,
static void
destroy_controlvm_payload_info(struct controlvm_payload_info *info)
{
	if (info->ptr != NULL) {
	if (info->ptr) {
		iounmap(info->ptr);
		info->ptr = NULL;
	}