Skip to content

Commit

Permalink
staging: tidspbridge: remove ref counting in nldr.c
Browse files Browse the repository at this point in the history
The nldr module has a nldr_init() and a nldr_exit() whose only purpose
is to keep a reference counting which is not used at all.

This patch only removes the reference count variable, but not the
functions, because they are used through an interface.

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>
  • Loading branch information
Víctor Manuel Jáquez Leal authored and Greg Kroah-Hartman committed Mar 9, 2012
1 parent d111f6e commit 81e8b88
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/staging/tidspbridge/rmgr/nldr.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,6 @@ static struct dbll_fxns ldr_fxns = {
(dbll_unload_fxn) dbll_unload,
};

static u32 refs; /* module reference count */

static int add_ovly_info(void *handle, struct dbll_sect_info *sect_info,
u32 addr, u32 bytes);
static int add_ovly_node(struct dsp_uuid *uuid_obj,
Expand Down Expand Up @@ -627,7 +625,7 @@ void nldr_delete(struct nldr_object *nldr_obj)
*/
void nldr_exit(void)
{
refs--;
/* do nothing */
}

/*
Expand Down Expand Up @@ -743,8 +741,7 @@ int nldr_get_rmm_manager(struct nldr_object *nldr,
*/
bool nldr_init(void)
{
refs++;

/* do nothing */
return true;
}

Expand Down

0 comments on commit 81e8b88

Please sign in to comment.