mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
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:
parent
f118a39bfe
commit
597c338f0a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue