From: Tobias Klauser <tklauser@distanz.ch>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Daniel Mack <daniel@zonque.org>,
David Herrmann <dh.herrmann@googlemail.com>,
Djalal Harouni <tixxdz@opendz.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] kdbus: Make kdbus_bus_unref() return void
Date: Wed, 22 Apr 2015 13:50:54 +0200 [thread overview]
Message-ID: <1429703454-27256-1-git-send-email-tklauser@distanz.ch> (raw)
kdbus_bus_unref() always returns NULL and none of its callers use the
return value, so make it return void.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
ipc/kdbus/bus.c | 5 +----
ipc/kdbus/bus.h | 2 +-
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/ipc/kdbus/bus.c b/ipc/kdbus/bus.c
index 9d0679e..dce7b08 100644
--- a/ipc/kdbus/bus.c
+++ b/ipc/kdbus/bus.c
@@ -202,14 +202,11 @@ struct kdbus_bus *kdbus_bus_ref(struct kdbus_bus *bus)
*
* Release a reference. If the reference count drops to 0, the bus will be
* freed.
- *
- * Return: NULL
*/
-struct kdbus_bus *kdbus_bus_unref(struct kdbus_bus *bus)
+void kdbus_bus_unref(struct kdbus_bus *bus)
{
if (bus)
kdbus_node_unref(&bus->node);
- return NULL;
}
/**
diff --git a/ipc/kdbus/bus.h b/ipc/kdbus/bus.h
index 5bea5ef..266af60 100644
--- a/ipc/kdbus/bus.h
+++ b/ipc/kdbus/bus.h
@@ -84,7 +84,7 @@ struct kdbus_bus {
};
struct kdbus_bus *kdbus_bus_ref(struct kdbus_bus *bus);
-struct kdbus_bus *kdbus_bus_unref(struct kdbus_bus *bus);
+void kdbus_bus_unref(struct kdbus_bus *bus);
struct kdbus_conn *kdbus_bus_find_conn_by_id(struct kdbus_bus *bus, u64 id);
void kdbus_bus_broadcast(struct kdbus_bus *bus,
--
2.2.2
next reply other threads:[~2015-04-22 11:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-22 11:50 Tobias Klauser [this message]
2015-04-22 12:01 ` David Herrmann
2015-04-22 12:12 ` Tobias Klauser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1429703454-27256-1-git-send-email-tklauser@distanz.ch \
--to=tklauser@distanz.ch \
--cc=daniel@zonque.org \
--cc=dh.herrmann@googlemail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tixxdz@opendz.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®