Re: [PATCH] KVM: PPC: Do not create debugfs if fail to create vcpu

Alexander Graf
2010-03-09T10:57:51Z

On 09.03.2010, at 07:13, Wei Yongjun wrote:

> If fail to create the vcpu, we should not create the debugfs
> for it.
>
> Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>

Good catch.

I guess a goto out kind of construct would be better, but for a single line of code this is enough. And whoever adds more lines can put the goto into place.

Acked-by: Alexander Graf <agraf@suse.de>

Alex