diff options
| author | Kevin Wolf <kwolf@redhat.com> | 2011-10-26 11:02:11 +0200 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2011-10-28 19:25:49 +0200 |
| commit | 3574c608195c10f4ac48bb6a27d1c5e2c5f9ac3a (patch) | |
| tree | a22dcb39348339ee8d2fdb6206a2300b5d5dfcc0 | |
| parent | 3789985f406ecb99f7d3e6521bb4310228f0577c (diff) | |
| download | focaccia-qemu-3574c608195c10f4ac48bb6a27d1c5e2c5f9ac3a.tar.gz focaccia-qemu-3574c608195c10f4ac48bb6a27d1c5e2c5f9ac3a.zip | |
block: Remove dead code
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| -rw-r--r-- | block.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/block.c b/block.c index 70aab63e4b..f86984fd62 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, |