[Qemu-devel] [PATCH for-1.5 8/9] qom: simplify object_class_dynamic_cast, part 1

2013-05-10 Thread Paolo Bonzini
Access everything from the class. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- qom/object.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/qom/object.c b/qom/object.c index f5f416b..f82f12c 100644 --- a/qom/object.c +++ b/qom/object.c @@ -457,15 +457,13 @@

Re: [Qemu-devel] [PATCH for-1.5 8/9] qom: simplify object_class_dynamic_cast, part 1

2013-05-10 Thread Anthony Liguori
Paolo Bonzini pbonz...@redhat.com writes: Access everything from the class. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- qom/object.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/qom/object.c b/qom/object.c index f5f416b..f82f12c 100644 ---