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

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
...@@ -1299,7 +1299,7 @@ initialize_controlvm_payload_info(HOSTADDRESS phys_addr, u64 offset, u32 bytes, ...@@ -1299,7 +1299,7 @@ initialize_controlvm_payload_info(HOSTADDRESS phys_addr, u64 offset, u32 bytes,
static void static void
destroy_controlvm_payload_info(struct controlvm_payload_info *info) destroy_controlvm_payload_info(struct controlvm_payload_info *info)
{ {
if (info->ptr != NULL) { if (info->ptr) {
iounmap(info->ptr); iounmap(info->ptr);
info->ptr = NULL; info->ptr = NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment