diff options
author | Harald Freudenberger <freude@linux.vnet.ibm.com> | 2017-02-17 02:12:10 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-02-20 06:37:32 -0500 |
commit | 260021e21b8fcc375984ac7733f93509bf9ad100 (patch) | |
tree | 954b4cfa565022b633608eb585ee66fb6e5cb737 | |
parent | 1228f7befbf3280906e75f532a1700c7d3138117 (diff) |
s390/zcrypt: Removed unneeded debug feature directory creation.
The ap bus code and the zcrypt api had invocations to the
debug feature debugfs_create_dir() call but never populated
these directories in any way. Removed this unneeded code.
Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r-- | drivers/s390/crypto/ap_bus.c | 3 | ||||
-rw-r--r-- | drivers/s390/crypto/zcrypt_api.c | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c index 5fa699192864..5a3a18f7b896 100644 --- a/drivers/s390/crypto/ap_bus.c +++ b/drivers/s390/crypto/ap_bus.c | |||
@@ -86,7 +86,6 @@ static bool initialised; | |||
86 | /* | 86 | /* |
87 | * AP bus related debug feature things. | 87 | * AP bus related debug feature things. |
88 | */ | 88 | */ |
89 | static struct dentry *ap_dbf_root; | ||
90 | debug_info_t *ap_dbf_info; | 89 | debug_info_t *ap_dbf_info; |
91 | 90 | ||
92 | /* | 91 | /* |
@@ -1148,7 +1147,6 @@ static struct reset_call ap_reset_call = { | |||
1148 | 1147 | ||
1149 | int __init ap_debug_init(void) | 1148 | int __init ap_debug_init(void) |
1150 | { | 1149 | { |
1151 | ap_dbf_root = debugfs_create_dir("ap", NULL); | ||
1152 | ap_dbf_info = debug_register("ap", 1, 1, | 1150 | ap_dbf_info = debug_register("ap", 1, 1, |
1153 | DBF_MAX_SPRINTF_ARGS * sizeof(long)); | 1151 | DBF_MAX_SPRINTF_ARGS * sizeof(long)); |
1154 | debug_register_view(ap_dbf_info, &debug_sprintf_view); | 1152 | debug_register_view(ap_dbf_info, &debug_sprintf_view); |
@@ -1159,7 +1157,6 @@ int __init ap_debug_init(void) | |||
1159 | 1157 | ||
1160 | void ap_debug_exit(void) | 1158 | void ap_debug_exit(void) |
1161 | { | 1159 | { |
1162 | debugfs_remove(ap_dbf_root); | ||
1163 | debug_unregister(ap_dbf_info); | 1160 | debug_unregister(ap_dbf_info); |
1164 | } | 1161 | } |
1165 | 1162 | ||
diff --git a/drivers/s390/crypto/zcrypt_api.c b/drivers/s390/crypto/zcrypt_api.c index 926169c3d9b9..144a17941e6f 100644 --- a/drivers/s390/crypto/zcrypt_api.c +++ b/drivers/s390/crypto/zcrypt_api.c | |||
@@ -81,7 +81,6 @@ EXPORT_SYMBOL(zcrypt_rescan_req); | |||
81 | static LIST_HEAD(zcrypt_ops_list); | 81 | static LIST_HEAD(zcrypt_ops_list); |
82 | 82 | ||
83 | /* Zcrypt related debug feature stuff. */ | 83 | /* Zcrypt related debug feature stuff. */ |
84 | static struct dentry *zcrypt_dbf_root; | ||
85 | debug_info_t *zcrypt_dbf_info; | 84 | debug_info_t *zcrypt_dbf_info; |
86 | 85 | ||
87 | /** | 86 | /** |
@@ -1427,7 +1426,6 @@ void zcrypt_rng_device_remove(void) | |||
1427 | 1426 | ||
1428 | int __init zcrypt_debug_init(void) | 1427 | int __init zcrypt_debug_init(void) |
1429 | { | 1428 | { |
1430 | zcrypt_dbf_root = debugfs_create_dir("zcrypt", NULL); | ||
1431 | zcrypt_dbf_info = debug_register("zcrypt", 1, 1, | 1429 | zcrypt_dbf_info = debug_register("zcrypt", 1, 1, |
1432 | DBF_MAX_SPRINTF_ARGS * sizeof(long)); | 1430 | DBF_MAX_SPRINTF_ARGS * sizeof(long)); |
1433 | debug_register_view(zcrypt_dbf_info, &debug_sprintf_view); | 1431 | debug_register_view(zcrypt_dbf_info, &debug_sprintf_view); |
@@ -1438,7 +1436,6 @@ int __init zcrypt_debug_init(void) | |||
1438 | 1436 | ||
1439 | void zcrypt_debug_exit(void) | 1437 | void zcrypt_debug_exit(void) |
1440 | { | 1438 | { |
1441 | debugfs_remove(zcrypt_dbf_root); | ||
1442 | debug_unregister(zcrypt_dbf_info); | 1439 | debug_unregister(zcrypt_dbf_info); |
1443 | } | 1440 | } |
1444 | 1441 | ||