From 9658a54dfa86b0c0df7704c8f4315d6e89e95c69 Mon Sep 17 00:00:00 2001 From: Víctor Manuel Jáquez Leal Date: Fri, 9 Mar 2012 01:03:43 +0100 Subject: staging: tidspbridge: remove chnl_init() and chnl_exit() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The chnl module has a chnl_init() and a chnl_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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/tidspbridge/pmgr/chnl.c | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'drivers/staging/tidspbridge/pmgr/chnl.c') diff --git a/drivers/staging/tidspbridge/pmgr/chnl.c b/drivers/staging/tidspbridge/pmgr/chnl.c index 825be200e278..4bd8686f2355 100644 --- a/drivers/staging/tidspbridge/pmgr/chnl.c +++ b/drivers/staging/tidspbridge/pmgr/chnl.c @@ -38,9 +38,6 @@ /* ----------------------------------- This */ #include -/* ----------------------------------- Globals */ -static u32 refs; - /* * ======== chnl_create ======== * Purpose: @@ -116,28 +113,3 @@ int chnl_destroy(struct chnl_mgr *hchnl_mgr) return status; } - -/* - * ======== chnl_exit ======== - * Purpose: - * Discontinue usage of the CHNL module. - */ -void chnl_exit(void) -{ - refs--; -} - -/* - * ======== chnl_init ======== - * Purpose: - * Initialize the CHNL module's private state. - */ -bool chnl_init(void) -{ - bool ret = true; - - if (ret) - refs++; - - return ret; -} -- cgit v1.2.3