On Fri, 10 Jun 2016 17:12:17 -0300 Eduardo Habkost <ehabk...@redhat.com> wrote:
> This patch simplifies code that uses a local_err variable just to > immediately use it for an error_propagate() call. > > Coccinelle patch used to perform the changes added to > scripts/coccinelle/remove_local_err.cocci. > > Signed-off-by: Eduardo Habkost <ehabk...@redhat.com> > --- > block.c | 8 ++------ > block/raw-posix.c | 8 ++------ > block/raw_bsd.c | 4 +--- > blockdev.c | 16 +++++----------- > hw/s390x/s390-virtio-ccw.c | 5 +---- > hw/s390x/virtio-ccw.c | 28 +++++++--------------------- For the two virtio-ccw files: Acked-by: Cornelia Huck <cornelia.h...@de.ibm.com> > scripts/coccinelle/remove_local_err.cocci | 27 +++++++++++++++++++++++++++ > target-i386/cpu.c | 4 +--- > 8 files changed, 46 insertions(+), 54 deletions(-) > create mode 100644 scripts/coccinelle/remove_local_err.cocci