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
parent
f118a39bfe
commit
597c338f0a
|
@ -1299,7 +1299,7 @@ cleanup:
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue