]> git.baikalelectronics.ru Git - kernel.git/commit
x86: kvm: remove NULL check before kfree
authorDongliang Mu <mudongliangabcd@gmail.com>
Tue, 14 Jun 2022 13:34:58 +0000 (21:34 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 20 Jun 2022 10:22:04 +0000 (06:22 -0400)
commitc5b0623fa26f0667fc0b3f0853316987e6ad0bb3
tree882272bc508256c7c4ffa2adf3e58ac65adb455e
parente0a72872235e41dcff6e999b3345dfa0fceda1cb
x86: kvm: remove NULL check before kfree

kfree can handle NULL pointer as its argument.
According to coccinelle isnullfree check, remove NULL check
before kfree operation.

Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Message-Id: <20220614133458.147314-1-dzm91@hust.edu.cn>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kernel/kvm.c