block: bdrv_aio_* do not return NULL
commitad54ae80c73f486cf39b4b38a04b76dd971cdbf6
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 30 Nov 2011 08:12:30 +0000 (30 09:12 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 15 Dec 2011 11:40:07 +0000 (15 12:40 +0100)
tree68c7bc557d325ed840ae11332b69c1ecb63e32fd
parent222f23f508a8d778f56eddef14752dfd26d225b4
block: bdrv_aio_* do not return NULL

Initially done with the following semantic patch:

@ rule1 @
expression E;
statement S;
@@
  E =
(
   bdrv_aio_readv
|  bdrv_aio_writev
|  bdrv_aio_flush
|  bdrv_aio_discard
|  bdrv_aio_ioctl
)
     (...);
(
- if (E == NULL) { ... }
|
- if (E)
    { <... S ...> }
)

which however missed the occurrence in block/blkverify.c
(as it should have done), and left behind some unused
variables.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
14 files changed:
block-migration.c
block.c
block/blkverify.c
block/qed-table.c
block/qed.c
block/vdi.c
hw/ide/atapi.c
hw/ide/core.c
hw/ide/macio.c
hw/scsi-disk.c
hw/scsi-generic.c
hw/virtio-blk.c
qemu-io.c
trace-events