block: remove QED .bdrv_make_empty implementation
authorJeff Cody <jcody@redhat.com>
Mon, 27 Jan 2014 21:09:12 +0000 (16:09 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 31 Jan 2014 21:05:03 +0000 (22:05 +0100)
commit55aff7f133b0eb20b2c8a2a3e1307240aab8044c
tree6591a6faf6ae829f7bdc19c2575f9d857a60214a
parent136cd19d0522c03b6dccc3e344886feab6faee43
block: remove QED .bdrv_make_empty implementation

The QED .bdrv_make_empty() implementation does nothing but return
-ENOTSUP, which causes problems in bdrv_commit().  Since the function
stub exists for QED, it is called, which then always returns an error.

The proper way to not support an optional driver function stub is to
just not implement it, so let's remove the stub.

Signed-off-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qed.c