linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] virtio/s390: use dev_to_virtio
@ 2015-12-30 14:05 Geliang Tang
  2016-01-07 15:04 ` Cornelia Huck
  0 siblings, 1 reply; 2+ messages in thread
From: Geliang Tang @ 2015-12-30 14:05 UTC (permalink / raw)
  To: Christian Borntraeger, Cornelia Huck, Martin Schwidefsky, Heiko Carstens
  Cc: Geliang Tang, linux-s390, virtualization, kvm, linux-kernel

Use dev_to_virtio() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
---
 drivers/s390/virtio/virtio_ccw.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/s390/virtio/virtio_ccw.c b/drivers/s390/virtio/virtio_ccw.c
index 1b83159..97231e1 100644
--- a/drivers/s390/virtio/virtio_ccw.c
+++ b/drivers/s390/virtio/virtio_ccw.c
@@ -945,8 +945,7 @@ static struct virtio_config_ops virtio_ccw_config_ops = {
 
 static void virtio_ccw_release_dev(struct device *_d)
 {
-	struct virtio_device *dev = container_of(_d, struct virtio_device,
-						 dev);
+	struct virtio_device *dev = dev_to_virtio(_d);
 	struct virtio_ccw_device *vcdev = to_vc_device(dev);
 
 	kfree(vcdev->status);
-- 
2.5.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] virtio/s390: use dev_to_virtio
  2015-12-30 14:05 [PATCH] virtio/s390: use dev_to_virtio Geliang Tang
@ 2016-01-07 15:04 ` Cornelia Huck
  0 siblings, 0 replies; 2+ messages in thread
From: Cornelia Huck @ 2016-01-07 15:04 UTC (permalink / raw)
  To: Geliang Tang
  Cc: Christian Borntraeger, Martin Schwidefsky, Heiko Carstens,
	linux-s390, virtualization, kvm, linux-kernel

On Wed, 30 Dec 2015 22:05:25 +0800
Geliang Tang <geliangtang@163.com> wrote:

> Use dev_to_virtio() instead of open-coding it.
> 
> Signed-off-by: Geliang Tang <geliangtang@163.com>
> ---
>  drivers/s390/virtio/virtio_ccw.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Thanks, added to my queue.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-07 15:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-30 14:05 [PATCH] virtio/s390: use dev_to_virtio Geliang Tang
2016-01-07 15:04 ` Cornelia Huck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).