block: Use bdrv_next() instead of bdrv_states
There is no point in manually iterating through the bdrv_states list when there is bdrv_next(). Signed-off-by: NMax Reitz <mreitz@redhat.com> Reviewed-by: NKevin Wolf <kwolf@redhat.com> Signed-off-by: NKevin Wolf <kwolf@redhat.com>
Showing
想要评论请 注册 或 登录