Patchwork [3/5] scsi: remove superfluous call to scsi_device_set_ua

login
register
mail settings
Submitter Paolo Bonzini
Date Nov. 12, 2012, 2:03 p.m.
Message ID <1352729011-27799-4-git-send-email-pbonzini@redhat.com>
Download mbox | patch
Permalink /patch/198401/
State New
Headers show

Comments

Paolo Bonzini - Nov. 12, 2012, 2:03 p.m.
Suggested by Laszlo Ersek.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 hw/scsi-disk.c | 1 -
 1 file modificato. 1 rimozione(-)

Patch

diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c
index 098558d..d15f891 100644
--- a/hw/scsi-disk.c
+++ b/hw/scsi-disk.c
@@ -1964,7 +1964,6 @@  static void scsi_disk_resize_cb(void *opaque)
      * direct-access devices.
      */
     if (s->qdev.type == TYPE_DISK) {
-        scsi_device_set_ua(&s->qdev, SENSE_CODE(CAPACITY_CHANGED));
         scsi_device_report_change(&s->qdev, SENSE_CODE(CAPACITY_CHANGED));
     }
 }