Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933540AbbDVLvJ (ORCPT ); Wed, 22 Apr 2015 07:51:09 -0400 Received: from mail.zhinst.com ([212.126.164.98]:37923 "EHLO mail.zhinst.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754870AbbDVLvF (ORCPT ); Wed, 22 Apr 2015 07:51:05 -0400 From: Tobias Klauser To: Greg Kroah-Hartman , Daniel Mack , David Herrmann , Djalal Harouni Cc: linux-kernel@vger.kernel.org Subject: [PATCH] kdbus: Make kdbus_bus_unref() return void Date: Wed, 22 Apr 2015 13:50:54 +0200 Message-Id: <1429703454-27256-1-git-send-email-tklauser@distanz.ch> X-Mailer: git-send-email 2.2.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1469 Lines: 51 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 --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/