qom: do nothing on unparent of object without parent
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Apr 2013 13:50:00 +0000 (15:50 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 16 Apr 2013 21:10:21 +0000 (16:10 -0500)
commite0a83fc2c1582dc8d4453849852ebe6c258b7c3a
treebe26639b0818c8f8c01b489c40e80510f00d4f39
parent2f7bd829dbaf39eb14706c3e889f28b795e050ca
qom: do nothing on unparent of object without parent

Otherwise, device_unparent will fail to get a canonical path of
the object.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1364910600-3418-1-git-send-email-pbonzini@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qom/object.c