Commit 15e90f52 authored by Geliang Tang's avatar Geliang Tang Committed by Michael S. Tsirkin

virtio/s390: use dev_to_virtio

Use dev_to_virtio() instead of open-coding it.
Signed-off-by: default avatarGeliang Tang <geliangtang@163.com>
Message-Id: <912bf59bd3a48f2d4d4994681e898dc084fe29d3.1451484163.git.geliangtang@163.com>
Signed-off-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 80f7d030
...@@ -945,8 +945,7 @@ static struct virtio_config_ops virtio_ccw_config_ops = { ...@@ -945,8 +945,7 @@ static struct virtio_config_ops virtio_ccw_config_ops = {
static void virtio_ccw_release_dev(struct device *_d) static void virtio_ccw_release_dev(struct device *_d)
{ {
struct virtio_device *dev = container_of(_d, struct virtio_device, struct virtio_device *dev = dev_to_virtio(_d);
dev);
struct virtio_ccw_device *vcdev = to_vc_device(dev); struct virtio_ccw_device *vcdev = to_vc_device(dev);
kfree(vcdev->status); kfree(vcdev->status);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment