From patchwork Fri May 14 17:10:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [21/21] block: Remove special case for vvfat Date: Fri, 14 May 2010 07:10:55 -0000 From: Kevin Wolf X-Patchwork-Id: 52651 Message-Id: <1273857055-26715-22-git-send-email-kwolf@redhat.com> To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org The special case doesn't really us buy anything. Without it vvfat works more consistently as a protocol. We get raw on top of vvfat now, which works just as well as using vvfat directly. Signed-off-by: Kevin Wolf --- block.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/block.c b/block.c index 7822580..bfe46e3 100644 --- a/block.c +++ b/block.c @@ -326,11 +326,6 @@ static BlockDriver *find_image_format(const char *filename) uint8_t buf[2048]; BlockDriverState *bs; - drv = find_protocol(filename); - /* no need to test disk image formats for vvfat */ - if (drv && strcmp(drv->format_name, "vvfat") == 0) - return drv; - ret = bdrv_file_open(&bs, filename, 0); if (ret < 0) return NULL;