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
commit 597c338f0a

View file

@ -1299,7 +1299,7 @@ cleanup:
static void
destroy_controlvm_payload_info(struct controlvm_payload_info *info)
{
if (info->ptr != NULL) {
if (info->ptr) {
iounmap(info->ptr);
info->ptr = NULL;
}