]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Fix ERROR: do not initialise statics to 0 or NULL in kvm_main.c
authorXiubo Li <lixiubo@cmss.chinamobile.com>
Thu, 26 Feb 2015 06:58:21 +0000 (14:58 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 10 Mar 2015 13:37:44 +0000 (10:37 -0300)
commitb3b12984fd961daa55703d055b6f968fdb74c0d0
treeb96f1ad744176c727bd08ca63fd4e61c98f20c83
parent42451b5e932fa98ec8c6772d3743034f1d0c825e
KVM: Fix ERROR: do not initialise statics to 0 or NULL in kvm_main.c

ERROR: do not initialise statics to 0 or NULL
+static int kvm_usage_count = 0;

The kvm_usage_count will be placed to .bss segment when linking, so
not need to set it to 0 here obviously.

This patch fixes this ERROR to reduce noise when checking new patches
in kvm_main.c.

Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
virt/kvm/kvm_main.c