diff options
Diffstat (limited to 'hw/virtio-blk.c')
-rw-r--r-- | hw/virtio-blk.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index e74455b827..a7b1146afd 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -104,8 +104,7 @@ static void virtio_blk_rw_complete(void *opaque, int ret) static VirtIOBlockReq *virtio_blk_alloc_request(VirtIOBlock *s) { VirtIOBlockReq *req = qemu_mallocz(sizeof(*req)); - if (req != NULL) - req->dev = s; + req->dev = s; return req; } |