On 17.11.21 17:34, Markus Armbruster wrote:
drive_get_next() is basically a bad idea.  It returns the "next" block
backend of a certain interface type.  "Next" means bus=0,unit=N, where
subsequent calls count N up from zero, per interface type.

This lets you define unit numbers implicitly by execution order.  If the
order changes, or new calls appear "in the middle", unit numbers change.
ABI break.  Hard to spot in review.

The previous commits eliminated all uses.  Drop the function.

Cc: Kevin Wolf <kw...@redhat.com>
Cc: Hanna Reitz <hre...@redhat.com>
Signed-off-by: Markus Armbruster <arm...@redhat.com>
---
  include/sysemu/blockdev.h |  1 -
  blockdev.c                | 10 ----------
  2 files changed, 11 deletions(-)

Reviewed-by: Hanna Reitz <hre...@redhat.com>


Reply via email to