Reviewed-by: wdon...@linux.vnet.ibm.com 2011/10/26 Kevin Wolf <kw...@redhat.com>: > Signed-off-by: Kevin Wolf <kw...@redhat.com> > --- > block.c | 6 +----- > 1 files changed, 1 insertions(+), 5 deletions(-) > > diff --git a/block.c b/block.c > index 0b7bc06..86d450c 100644 > --- a/block.c > +++ b/block.c > @@ -2039,11 +2039,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 > > >
-- Regards Robert Wang