scsi: remove superfluous call to scsi_device_set_ua
Suggested by Laszlo Ersek. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
cd41a671b3
commit
b5232e904f
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user