[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 05/55] block: Remove dead code
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 05/55] block: Remove dead code |
Date: |
Mon, 31 Oct 2011 14:29:40 +0100 |
Signed-off-by: Kevin Wolf <address@hidden>
---
block.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/block.c b/block.c
index 70aab63..f86984f 100644
--- a/block.c
+++ b/block.c
@@ -2028,11 +2028,7 @@ const char *bdrv_get_encrypted_filename(BlockDriverState
*bs)
void bdrv_get_backing_filename(BlockDriverState *bs,
char *filename, int filename_size)
{
- if (!bs->backing_file) {
- pstrcpy(filename, filename_size, "");
- } else {
- pstrcpy(filename, filename_size, bs->backing_file);
- }
+ pstrcpy(filename, filename_size, bs->backing_file);
}
int bdrv_write_compressed(BlockDriverState *bs, int64_t sector_num,
--
1.7.6.4
- [Qemu-devel] [PULL 00/55] Block patches, Kevin Wolf, 2011/10/31
- [Qemu-devel] [PATCH 02/55] Documentation: Add iSCSI section, Kevin Wolf, 2011/10/31
- [Qemu-devel] [PATCH 01/55] iSCSI block driver, Kevin Wolf, 2011/10/31
- [Qemu-devel] [PATCH 03/55] Teach block/vdi about "discarded" (no longer allocated) blocks, Kevin Wolf, 2011/10/31
- [Qemu-devel] [PATCH 04/55] qcow2: fix some errors and typo in qcow2.txt, Kevin Wolf, 2011/10/31
- [Qemu-devel] [PATCH 05/55] block: Remove dead code,
Kevin Wolf <=
- [Qemu-devel] [PATCH 06/55] block: Fix bdrv_open use after free, Kevin Wolf, 2011/10/31
- [Qemu-devel] [PATCH 07/55] qcow: Fix bdrv_write_compressed error handling, Kevin Wolf, 2011/10/31
- [Qemu-devel] [PATCH 09/55] vmdk: Fix use of uninitialised value, Kevin Wolf, 2011/10/31
- [Qemu-devel] [PATCH 08/55] ide: Fix off-by-one error in array index check, Kevin Wolf, 2011/10/31
- [Qemu-devel] [PATCH 12/55] Documentation: Describe NBD URL syntax, Kevin Wolf, 2011/10/31
- [Qemu-devel] [PATCH 13/55] block: fix qcow2_co_flush deadlock, Kevin Wolf, 2011/10/31
- [Qemu-devel] [PATCH 10/55] vmdk: Improve error handling, Kevin Wolf, 2011/10/31
- [Qemu-devel] [PATCH 11/55] vmdk: Fix possible segfaults, Kevin Wolf, 2011/10/31
- [Qemu-devel] [PATCH 14/55] qemu-io: delete bs instead of leaking it, Kevin Wolf, 2011/10/31
- [Qemu-devel] [PATCH 15/55] block: set bs->read_only before .bdrv_open(), Kevin Wolf, 2011/10/31