[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/2] qemu/qdev: type safety in reset handler
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] [PATCH 1/2] qemu/qdev: type safety in reset handler |
Date: |
Tue, 15 Sep 2009 23:20:25 +0300 |
On Tue, Sep 15, 2009 at 5:33 PM, Michael S. Tsirkin <address@hidden> wrote:
> Add type safety to qdev reset handlers, by declaring them as
> DeviceState * rather than void *.
The function seems a bit unnecessary, how about instead:
static void rtl8139_reset(struct DeviceState *d)
{
RTL8139State *s = container_of(d, RTL8139State, dev.qdev);
?
Message not available