From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcxVo-0006DU-OE for qemu-devel@nongnu.org; Fri, 18 Sep 2015 11:23:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcxVo-0005sp-0f for qemu-devel@nongnu.org; Fri, 18 Sep 2015 11:23:44 -0400 From: Max Reitz Date: Fri, 18 Sep 2015 17:22:43 +0200 Message-Id: <1442589793-7105-9-git-send-email-mreitz@redhat.com> In-Reply-To: <1442589793-7105-1-git-send-email-mreitz@redhat.com> References: <1442589793-7105-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH v5 08/38] block/raw_bsd: Drop raw_is_inserted() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-block@nongnu.org Cc: Kevin Wolf , Alberto Garcia , Markus Armbruster , qemu-devel@nongnu.org, Max Reitz , John Snow , Stefan Hajnoczi With the new automatically-recursive implementation of bdrv_is_inserted() checking by default whether all the children of a BDS are inserted, we can drop raw's own implementation. Signed-off-by: Max Reitz --- block/raw_bsd.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/block/raw_bsd.c b/block/raw_bsd.c index d718583..891a1fa 100644 --- a/block/raw_bsd.c +++ b/block/raw_bsd.c @@ -154,11 +154,6 @@ static int raw_truncate(BlockDriverState *bs, int64_t offset) return bdrv_truncate(bs->file, offset); } -static bool raw_is_inserted(BlockDriverState *bs) -{ - return bdrv_is_inserted(bs->file); -} - static int raw_media_changed(BlockDriverState *bs) { return bdrv_media_changed(bs->file); @@ -264,7 +259,6 @@ BlockDriver bdrv_raw = { .bdrv_refresh_limits = &raw_refresh_limits, .bdrv_probe_blocksizes = &raw_probe_blocksizes, .bdrv_probe_geometry = &raw_probe_geometry, - .bdrv_is_inserted = &raw_is_inserted, .bdrv_media_changed = &raw_media_changed, .bdrv_eject = &raw_eject, .bdrv_lock_medium = &raw_lock_medium, -- 2.5.2