diff mbox

[04/17] qdev-properties: parse_enum: don't cast a void*

Message ID 1296767234-9480-5-git-send-email-alevy@redhat.com
State New
Headers show

Commit Message

Alon Levy Feb. 3, 2011, 9:07 p.m. UTC
Signed-off-by: Alon Levy <alevy@redhat.com>
---
 hw/qdev-properties.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c
index 3157721..9108f18 100644
--- a/hw/qdev-properties.c
+++ b/hw/qdev-properties.c
@@ -75,7 +75,7 @@  DEFINE_PROP_ENUM("foo", State, foo, 1, foo_enum_table),
 static int parse_enum(DeviceState *dev, Property *prop, const char *str)
 {
     uint8_t *ptr = qdev_get_prop_ptr(dev, prop);
-    EnumTable *option = (EnumTable*)prop->data;
+    EnumTable *option = prop->data;
 
     while (option->name != NULL) {
         if (!strncmp(str, option->name, strlen(option->name))) {