diff --git a/block/blkdebug.c b/block/blkdebug.c index 8a4a8cb85e..fdc96d1f45 100644 --- a/block/blkdebug.c +++ b/block/blkdebug.c @@ -591,7 +591,7 @@ static int coroutine_fn rule_check(BlockDriverState *bs, uint64_t offset, uint64_t bytes, BlkdebugIOType iotype) { BDRVBlkdebugState *s = bs->opaque; - BlkdebugRule *rule = NULL; + BlkdebugRule *rule; int error; bool immediately; diff --git a/migration/block-dirty-bitmap.c b/migration/block-dirty-bitmap.c index a061aad817..87009c4518 100644 --- a/migration/block-dirty-bitmap.c +++ b/migration/block-dirty-bitmap.c @@ -1216,7 +1216,7 @@ fail: static int dirty_bitmap_save_setup(QEMUFile *f, void *opaque, Error **errp) { DBMSaveState *s = &((DBMState *)opaque)->save; - SaveBitmapState *dbms = NULL; + SaveBitmapState *dbms; if (init_dirty_bitmap_migration(s, errp) < 0) { return -1;