summaryrefslogtreecommitdiffstats
path: root/io
diff options
context:
space:
mode:
authorLaurent Vivier2018-03-23 15:32:02 +0100
committerMichael Tokarev2018-05-20 07:48:13 +0200
commit4a4ff4c58fd750cde01c8b15d30d038cefc90a42 (patch)
tree663380d3786b808f7829236f2d085b437d4edb71 /io
parenttrivial: Do not include pci.h if it is not necessary (diff)
downloadqemu-4a4ff4c58fd750cde01c8b15d30d038cefc90a42.tar.gz
qemu-4a4ff4c58fd750cde01c8b15d30d038cefc90a42.tar.xz
qemu-4a4ff4c58fd750cde01c8b15d30d038cefc90a42.zip
Remove unnecessary variables for function return value
Re-run Coccinelle script scripts/coccinelle/return_directly.cocci Signed-off-by: Laurent Vivier <lvivier@redhat.com> ppc part Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'io')
-rw-r--r--io/net-listener.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/io/net-listener.c b/io/net-listener.c
index 555e8acaa4..3317aa6e5f 100644
--- a/io/net-listener.c
+++ b/io/net-listener.c
@@ -25,11 +25,7 @@
QIONetListener *qio_net_listener_new(void)
{
- QIONetListener *ret;
-
- ret = QIO_NET_LISTENER(object_new(TYPE_QIO_NET_LISTENER));
-
- return ret;
+ return QIO_NET_LISTENER(object_new(TYPE_QIO_NET_LISTENER));
}
void qio_net_listener_set_name(QIONetListener *listener,