Patchwork [5/5] s390/virtio-ccw: remove redundant call to blockdev_mark_auto_del

login
register
mail settings
Submitter Alexander Graf
Date March 8, 2013, 8:17 p.m.
Message ID <1362773873-4510-6-git-send-email-agraf@suse.de>
Download mbox | patch
Permalink /patch/226254/
State New
Headers show

Comments

Alexander Graf - March 8, 2013, 8:17 p.m.
From: Christian Borntraeger <borntraeger@de.ibm.com>

blockdev_mark_auto_del is already called in virtio-blk-exit.
Remove the redundant call.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
---
 hw/s390x/virtio-ccw.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c
index d92e427..a9cf703 100644
--- a/hw/s390x/virtio-ccw.c
+++ b/hw/s390x/virtio-ccw.c
@@ -585,7 +585,6 @@  static int virtio_ccw_blk_init(VirtioCcwDevice *dev)
 static int virtio_ccw_blk_exit(VirtioCcwDevice *dev)
 {
     virtio_blk_exit(dev->vdev);
-    blockdev_mark_auto_del(dev->blk.conf.bs);
     return virtio_ccw_exit(dev);
 }