ide: refactor retry_unit set and clear into separate function
commit0eeee07e24b46a31c4a07f1ba27a33a077f5e38b
authorEvgeny Yakovlev <eyakovlev@virtuozzo.com>
Mon, 18 Jul 2016 19:39:49 +0000 (18 22:39 +0300)
committerJohn Snow <jsnow@redhat.com>
Mon, 18 Jul 2016 22:19:01 +0000 (18 18:19 -0400)
tree8250914e9076f023195e69128956d93315294951
parent3913d3707e3debfbf0d2d014a1a793394993b088
ide: refactor retry_unit set and clear into separate function

Code to set and clear state associated with retry in moved into
ide_set_retry and ide_clear_retry to make adding retry setups easier.

Signed-off-by: Evgeny Yakovlev <eyakovlev@virtuozzo.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1468870792-7411-2-git-send-email-den@openvz.org
CC: Kevin Wolf <kwolf@redhat.com>
CC: Max Reitz <mreitz@redhat.com>
CC: Stefan Hajnoczi <stefanha@redhat.com>
CC: Fam Zheng <famz@redhat.com>
CC: John Snow <jsnow@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
hw/ide/core.c