[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 0/4] block: Use g_new() & friends more
From: |
Markus Armbruster |
Subject: |
[Qemu-devel] [PATCH v2 0/4] block: Use g_new() & friends more |
Date: |
Mon, 18 Aug 2014 18:10:39 +0200 |
PATCH 1+2 convert some allocations. While preparing them, I stumbled
over dead error handling and some useless casts, which led to PATCH
3+4.
I posted a tree-wide version of PATCH 1 some time ago, and was told to
split it up. This is the block part, redone from scratch. Other
parts available on request.
v2:
* Regenerated with spatch.
* Because of that, I decided not to carry Max's R-by forward.
Markus Armbruster (4):
block: Use g_new() & friends where that makes obvious sense
block: Use g_new() & friends to avoid multiplying sizes
qemu-io-cmds: g_renew() can't fail, bury dead error handling
block: Drop some superfluous casts from void *
block-migration.c | 6 +++---
block.c | 14 +++++++-------
block/archipelago.c | 6 +++---
block/bochs.c | 2 +-
block/gluster.c | 8 ++++----
block/iscsi.c | 2 +-
block/nfs.c | 2 +-
block/parallels.c | 2 +-
block/qcow.c | 2 +-
block/qcow2-cache.c | 2 +-
block/qcow2-cluster.c | 2 +-
block/qcow2-refcount.c | 8 ++++----
block/qcow2-snapshot.c | 8 ++++----
block/qed-check.c | 3 +--
block/raw-posix.c | 2 +-
block/rbd.c | 6 +++---
block/sheepdog.c | 6 +++---
block/vdi.c | 2 +-
block/vhdx-log.c | 2 +-
block/vhdx.c | 4 ++--
block/vmdk.c | 7 +++----
block/vvfat.c | 10 +++++-----
blockdev-nbd.c | 2 +-
blockdev.c | 2 +-
hw/block/nvme.c | 8 ++++----
hw/ide/ahci.c | 2 +-
hw/ide/microdrive.c | 2 +-
qemu-io-cmds.c | 21 ++++++---------------
qemu-io.c | 2 +-
29 files changed, 67 insertions(+), 78 deletions(-)
--
1.9.3