qemu-e2k/block
Simran Singhal b3ac2b94cd Compress lines for immediate return
Compress two lines into a single line if immediate return statement is found.

It also remove variables progress, val, data, ret and sock
as they are no longer needed.

Remove space between function "mixer_load" and '(' to fix the
checkpatch.pl error:-
ERROR: space prohibited between function name and open parenthesis '('

Done using following coccinelle script:
@@
local idexpression ret;
expression e;
@@

-ret =
+return
     e;
-return ret;

Signed-off-by: Simran Singhal <singhalsimran0@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20200401165314.GA3213@simran-Inspiron-5558>
[lv: in handle_aiocb_write_zeroes_unmap() move "int ret" inside the #ifdef]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2020-05-04 14:43:22 +02:00
..
monitor Use &error_abort instead of separate assert() 2020-03-17 16:05:40 +01:00
accounting.c
aio_task.c
backup-top.c block/block-copy: hide structure definitions 2020-03-11 12:42:30 +01:00
backup-top.h
backup.c backup: don't acquire aio_context in backup_clean 2020-04-07 14:34:47 +02:00
blkdebug.c
blklogwrites.c
blkreplay.c
blkverify.c
block-backend.c block-backend: Add flags to blk_truncate() 2020-04-30 17:51:07 +02:00
block-copy.c block/block-copy: hide structure definitions 2020-03-11 12:42:30 +01:00
bochs.c
cloop.c
commit.c block-backend: Add flags to blk_truncate() 2020-04-30 17:51:07 +02:00
copy-on-read.c
create.c
crypto.c block-backend: Add flags to blk_truncate() 2020-04-30 17:51:07 +02:00
crypto.h
curl.c
dirty-bitmap.c block/dirty-bitmap: improve _next_dirty_area API 2020-03-18 14:03:46 -04:00
dmg-bz2.c
dmg-lzfse.c
dmg.c
dmg.h
file-posix.c Compress lines for immediate return 2020-05-04 14:43:22 +02:00
file-win32.c block: Add flags to BlockDriver.bdrv_co_truncate() 2020-04-30 17:51:07 +02:00
filter-compress.c
gluster.c block: Add flags to BlockDriver.bdrv_co_truncate() 2020-04-30 17:51:07 +02:00
io_uring.c
io.c block: truncate: Don't make backing file data visible 2020-04-30 17:51:07 +02:00
iscsi-opts.c
iscsi.c block: Add flags to BlockDriver.bdrv_co_truncate() 2020-04-30 17:51:07 +02:00
linux-aio.c misc: Replace zero-length arrays with flexible array member (automatic) 2020-03-16 22:07:42 +01:00
Makefile.objs
mirror.c block-backend: Add flags to blk_truncate() 2020-04-30 17:51:07 +02:00
nbd.c block: trickle down the fallback image creation function use to the block drivers 2020-03-26 14:44:33 +01:00
nfs.c Compress lines for immediate return 2020-05-04 14:43:22 +02:00
null.c
nvme.c Compress lines for immediate return 2020-05-04 14:43:22 +02:00
parallels.c block: Add flags to bdrv(_co)_truncate() 2020-04-30 17:51:07 +02:00
parallels.h
qapi-sysemu.c
qapi.c
qcow2-bitmap.c block/qcow2-bitmap: use bdrv_dirty_bitmap_next_dirty 2020-03-18 14:03:46 -04:00
qcow2-cache.c
qcow2-cluster.c qcow2: Support BDRV_REQ_ZERO_WRITE for truncate 2020-04-30 17:51:07 +02:00
qcow2-refcount.c block: Add flags to bdrv(_co)_truncate() 2020-04-30 17:51:07 +02:00
qcow2-snapshot.c
qcow2-threads.c
qcow2.c qcow2: Forward ZERO_WRITE flag for full preallocation 2020-04-30 17:51:07 +02:00
qcow2.h qcow2: Remove unused fields from BDRVQcow2State 2020-03-27 14:47:23 +01:00
qcow.c block: Add flags to bdrv(_co)_truncate() 2020-04-30 17:51:07 +02:00
qed-check.c
qed-cluster.c
qed-l2-cache.c
qed-table.c
qed.c block-backend: Add flags to blk_truncate() 2020-04-30 17:51:07 +02:00
qed.h
quorum.c
raw-format.c raw-format: Support BDRV_REQ_ZERO_WRITE for truncate 2020-04-30 17:51:07 +02:00
rbd.c block: Add flags to BlockDriver.bdrv_co_truncate() 2020-04-30 17:51:07 +02:00
replication.c various: Remove suspicious '\' character outside of #define in C code 2020-04-29 08:01:51 +02:00
sheepdog.c block: Add flags to BlockDriver.bdrv_co_truncate() 2020-04-30 17:51:07 +02:00
snapshot.c
ssh.c block: Add flags to BlockDriver.bdrv_co_truncate() 2020-04-30 17:51:07 +02:00
stream.c
throttle-groups.c
throttle.c
trace-events
vdi.c block-backend: Add flags to blk_truncate() 2020-04-30 17:51:07 +02:00
vhdx-endian.c
vhdx-log.c block: Add flags to bdrv(_co)_truncate() 2020-04-30 17:51:07 +02:00
vhdx.c Compress lines for immediate return 2020-05-04 14:43:22 +02:00
vhdx.h
vmdk.c block-backend: Add flags to blk_truncate() 2020-04-30 17:51:07 +02:00
vpc.c block-backend: Add flags to blk_truncate() 2020-04-30 17:51:07 +02:00
vvfat.c
vxhs.c
win32-aio.c
write-threshold.c