Skip to content

Commit

Permalink
KVM: remove pointless conditional before kfree() in lapic initialization
Browse files Browse the repository at this point in the history
Remove pointless conditional before kfree().

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Wei Yongjun authored and Avi Kivity committed Jun 10, 2009
1 parent 9645bb5 commit 7a6ce84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -1592,8 +1592,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp,
r = -EINVAL;
}
out:
if (lapic)
kfree(lapic);
kfree(lapic);
return r;
}

Expand Down

0 comments on commit 7a6ce84

Please sign in to comment.