projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3789985
)
block: Remove dead code
author
Kevin Wolf
<kwolf@redhat.com>
Wed, 26 Oct 2011 09:02:11 +0000
(11:02 +0200)
committer
Kevin Wolf
<kwolf@redhat.com>
Fri, 28 Oct 2011 17:25:49 +0000
(19:25 +0200)
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
patch
|
blob
|
history
diff --git
a/block.c
b/block.c
index 70aab63e4b8edcde7661c31c92d0b811bf2bb70e..f86984fd62ac3c1cfd451061b6f09867ac754fd6 100644
(file)
--- 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,