Patchwork [05/55] block: Remove dead code

login
register
mail settings
Submitter Kevin Wolf
Date Oct. 31, 2011, 1:29 p.m.
Message ID <1320067830-12093-6-git-send-email-kwolf@redhat.com>
Download mbox | patch
Permalink /patch/122868/
State New
Headers show

Comments

Kevin Wolf - Oct. 31, 2011, 1:29 p.m.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
 block.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

Patch

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,