1
0
Fork 0

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>
hifive-unleashed-5.1
Benjamin Romer 2015-03-16 13:58:27 -04:00 committed by Greg Kroah-Hartman
parent f118a39bfe
commit 597c338f0a
1 changed files with 1 additions and 1 deletions

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