diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2018-06-06 15:09:53 -0400 |
---|---|---|
committer | John Snow <jsnow@redhat.com> | 2018-06-08 13:36:31 -0400 |
commit | 882941a5680db4d3e247a089126be23181ae13fd (patch) | |
tree | ecfb9150a19b97e19c904ad5d992803385e71092 /COPYING.LIB | |
parent | ee4cd662addd2ef51c5bc33e57f7fc6cdee830a0 (diff) | |
download | qemu-882941a5680db4d3e247a089126be23181ae13fd.zip qemu-882941a5680db4d3e247a089126be23181ae13fd.tar.gz qemu-882941a5680db4d3e247a089126be23181ae13fd.tar.bz2 |
ide: make ide_transfer_stop idempotent
There is code checking s->end_transfer_func and it was not taught about
ide_transfer_cancel. We can just use ide_transfer_stop because
s->end_transfer_func is only ever called in the DRQ phase.
ide_transfer_cancel can then be removed, since it would just be
calling ide_transfer_halt.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20180606190955.20845-6-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'COPYING.LIB')
0 files changed, 0 insertions, 0 deletions