qemu-e2k/scripts
Markus Armbruster 949ceeb31b qapi: Clean up null checking in generated visitors
Visitors get passed a pointer to the visited object.  The generated
visitors try to cope with this pointer being null in some places, for
instance like this:

    visit_start_optional(m, obj ? &(*obj)->has_name : NULL, "name", &err);

visit_start_optional() passes its second argument to Visitor method
start_optional.  Three out of three methods dereference it
unconditionally.

I fail to see how this pointer could legitimately be null.

All this useless null checking is highly redundant, which Coverity
duly reports.  About 200 times.

Remove the useless null checks.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2014-03-03 11:17:20 -05:00
..
kvm
qemu-guest-agent
qmp
tracetool
acpi_extract_preprocess.py
acpi_extract.py
analyse-9p-simpletrace.py
check-qerror.sh
checkpatch.pl
cleanup-trace-events.pl
create_config
disas-objdump.pl
dump-guest-memory.py
extract-vsssdk-headers
feature_to_c.sh
get_maintainer.pl
gtester-cat
hxtool
make_device_config.sh
make-release
ordereddict.py
qapi-commands.py
qapi-types.py
qapi-visit.py qapi: Clean up null checking in generated visitors 2014-03-03 11:17:20 -05:00
qapi.py
qemu-binfmt-conf.sh
qemu-gdb.py
qtest
refresh-pxe-roms.sh
signrom.py
simpletrace.py
switch-timer-api
texi2pod.pl
tracetool.py
update-acpi.sh
update-linux-headers.sh