qemu/hw/net/rocker
Daniel P. Berrange ef1e1e0782 maint: avoid useless "if (foo) free(foo)" pattern
The free() and g_free() functions both happily accept
NULL on any platform QEMU builds on. As such putting a
conditional 'if (foo)' check before calls to 'free(foo)'
merely serves to bloat the lines of code.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2015-09-11 10:21:38 +03:00
..
qmp-norocker.c qerror: Clean up QERR_ macros to expand into a single string 2015-06-22 18:20:40 +02:00
rocker.c maint: avoid useless "if (foo) free(foo)" pattern 2015-09-11 10:21:38 +03:00
rocker.h rocker: mark copy-to-cpu pkts as forwarding offloaded 2015-07-07 13:13:22 +01:00
rocker_desc.c maint: avoid useless "if (foo) free(foo)" pattern 2015-09-11 10:21:38 +03:00
rocker_desc.h rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00
rocker_fp.c rocker: don't queue receive pkts when port is disabled 2015-07-07 13:10:26 +01:00
rocker_fp.h qmp/hmp: add rocker device support 2015-06-12 13:42:17 +01:00
rocker_hw.h rocker: mark copy-to-cpu pkts as forwarding offloaded 2015-07-07 13:13:22 +01:00
rocker_of_dpa.c rocker: mark copy-to-cpu pkts as forwarding offloaded 2015-07-07 13:13:22 +01:00
rocker_of_dpa.h rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00
rocker_tlv.h rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00
rocker_world.c rocker: return -1 when dropping packet on ingress 2015-07-07 13:13:22 +01:00
rocker_world.h rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00