Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: tidspbridge: remove ref counting in nldr.c

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>

authored by

Víctor Manuel Jáquez Leal and committed by
Greg Kroah-Hartman
81e8b88a d111f6e9

+2 -5
+2 -5
drivers/staging/tidspbridge/rmgr/nldr.c
··· 263 263 (dbll_unload_fxn) dbll_unload, 264 264 }; 265 265 266 - static u32 refs; /* module reference count */ 267 - 268 266 static int add_ovly_info(void *handle, struct dbll_sect_info *sect_info, 269 267 u32 addr, u32 bytes); 270 268 static int add_ovly_node(struct dsp_uuid *uuid_obj, ··· 625 627 */ 626 628 void nldr_exit(void) 627 629 { 628 - refs--; 630 + /* do nothing */ 629 631 } 630 632 631 633 /* ··· 741 743 */ 742 744 bool nldr_init(void) 743 745 { 744 - refs++; 745 - 746 + /* do nothing */ 746 747 return true; 747 748 } 748 749