diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-06-01 13:10:02 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-06-01 20:15:56 +0200 |
commit | 127892febb2d5d6612756da2d7d0bab526db3b51 (patch) | |
tree | edbbc7ff5087316b2a98d31562ad6b5e85c404d0 /drivers/staging | |
parent | 24e8d3fc42f25936ff270e404847a3a462c38468 (diff) | |
download | linux-127892febb2d5d6612756da2d7d0bab526db3b51.tar.bz2 |
staging: vc04_services: remove struct vchiq_debugfs_info
This structure, and the one static variable that was declared with it,
were not being used for anything. The log_categories field was being
set, but never used again. So just remove it entirely as it is not
needed at all.
Suggested-by: Eric Anholt <eric@anholt.net>
Cc: Stefan Wahren <stefan.wahren@i2se.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Keerthi Reddy <keerthigd4990@gmail.com>
Cc: linux-rpi-kernel@lists.infradead.org
Cc: linux-arm-kernel@lists.infradead.org
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c index 12ed560c95a7..f18cd56c3634 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c @@ -51,14 +51,6 @@ #define VCHIQ_LOG_INFO_STR "info" #define VCHIQ_LOG_TRACE_STR "trace" -/* Top-level debug info */ -struct vchiq_debugfs_info { - /* log categories */ - struct dentry *log_categories; -}; - -static struct vchiq_debugfs_info debugfs_info; - /* Global 'vchiq' debugfs and clients entry used by all instances */ struct dentry *vchiq_dbg_dir; struct dentry *vchiq_dbg_clients; @@ -159,16 +151,12 @@ static void vchiq_debugfs_create_log_entries(struct dentry *top) size_t i; dir = debugfs_create_dir("log", vchiq_dbg_dir); - debugfs_info.log_categories = dir; for (i = 0; i < n_log_entries; i++) { void *levp = (void *)vchiq_debugfs_log_entries[i].plevel; dir = debugfs_create_file(vchiq_debugfs_log_entries[i].name, - 0644, - debugfs_info.log_categories, - levp, - &debugfs_log_fops); + 0644, dir, levp, &debugfs_log_fops); vchiq_debugfs_log_entries[i].dir = dir; } } |