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: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Benjamin Romer
2015-03-16 13:58:27 -04:00
committed by Greg Kroah-Hartman
parent f118a39bfe
commit 597c338f0a

View File

@@ -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;
}