diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-03-20 10:09:55 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2019-05-07 15:36:39 -0400 |
commit | fb9a5a3edb4c34ac0d7e6996278604e53a43245f (patch) | |
tree | 2930e9d1d683824a70b3a1e2eca167303ce3ee9e /fs/ubifs/auth.c | |
parent | cf3949670f709d86d975b0cfa4e65be2b40d1e78 (diff) |
ubifs: remove unused function __ubifs_shash_final
There is no callers in tree, and can be removed.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs/auth.c')
-rw-r--r-- | fs/ubifs/auth.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/fs/ubifs/auth.c b/fs/ubifs/auth.c index 5bf5fd08879e..2a40cccee5bd 100644 --- a/fs/ubifs/auth.c +++ b/fs/ubifs/auth.c | |||
@@ -147,24 +147,6 @@ struct shash_desc *__ubifs_hash_get_desc(const struct ubifs_info *c) | |||
147 | } | 147 | } |
148 | 148 | ||
149 | /** | 149 | /** |
150 | * __ubifs_shash_final - finalize shash | ||
151 | * @c: UBIFS file-system description object | ||
152 | * @desc: the descriptor | ||
153 | * @out: the output hash | ||
154 | * | ||
155 | * Simple wrapper around crypto_shash_final(), safe to be called with | ||
156 | * disabled authentication. | ||
157 | */ | ||
158 | int __ubifs_shash_final(const struct ubifs_info *c, struct shash_desc *desc, | ||
159 | u8 *out) | ||
160 | { | ||
161 | if (ubifs_authenticated(c)) | ||
162 | return crypto_shash_final(desc, out); | ||
163 | |||
164 | return 0; | ||
165 | } | ||
166 | |||
167 | /** | ||
168 | * ubifs_bad_hash - Report hash mismatches | 150 | * ubifs_bad_hash - Report hash mismatches |
169 | * @c: UBIFS file-system description object | 151 | * @c: UBIFS file-system description object |
170 | * @node: the node | 152 | * @node: the node |