summaryrefslogtreecommitdiff
path: root/drivers/staging/tidspbridge/pmgr/msg.c
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2012-03-09 04:03:44 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-10 01:21:07 +0400
commit1471d6c69ff7843fb7149218d3afb4d5a2e4426c (patch)
treeb09cc472695d323276bea9717d8d4b90cf1cb5dc /drivers/staging/tidspbridge/pmgr/msg.c
parent9658a54dfa86b0c0df7704c8f4315d6e89e95c69 (diff)
downloadlinux-1471d6c69ff7843fb7149218d3afb4d5a2e4426c.tar.xz
staging: tidspbridge: remove msg_mod_init() and msg_exit()
The msg module has a msg_mod_init() and a msg_exit() whose only purpose is to keep a reference counting which is not used at all. This patch removes these functions and the reference count variable. There is no functional changes. Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/tidspbridge/pmgr/msg.c')
-rw-r--r--drivers/staging/tidspbridge/pmgr/msg.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/staging/tidspbridge/pmgr/msg.c b/drivers/staging/tidspbridge/pmgr/msg.c
index 077c11850c0b..f093cfb51c00 100644
--- a/drivers/staging/tidspbridge/pmgr/msg.c
+++ b/drivers/staging/tidspbridge/pmgr/msg.c
@@ -33,9 +33,6 @@
#include <msgobj.h>
#include <dspbridge/msg.h>
-/* ----------------------------------- Globals */
-static u32 refs; /* module reference count */
-
/*
* ======== msg_create ========
* Purpose:
@@ -92,21 +89,3 @@ void msg_delete(struct msg_mgr *hmsg_mgr)
__func__, hmsg_mgr);
}
}
-
-/*
- * ======== msg_exit ========
- */
-void msg_exit(void)
-{
- refs--;
-}
-
-/*
- * ======== msg_mod_init ========
- */
-bool msg_mod_init(void)
-{
- refs++;
-
- return true;
-}