Skip to content

Commit

Permalink
ubifs: remove unused function __ubifs_shash_final
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
YueHaibing authored and Richard Weinberger committed May 7, 2019
1 parent cf39496 commit fb9a5a3
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions fs/ubifs/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,24 +146,6 @@ struct shash_desc *__ubifs_hash_get_desc(const struct ubifs_info *c)
return ubifs_get_desc(c, c->hash_tfm);
}

/**
* __ubifs_shash_final - finalize shash
* @c: UBIFS file-system description object
* @desc: the descriptor
* @out: the output hash
*
* Simple wrapper around crypto_shash_final(), safe to be called with
* disabled authentication.
*/
int __ubifs_shash_final(const struct ubifs_info *c, struct shash_desc *desc,
u8 *out)
{
if (ubifs_authenticated(c))
return crypto_shash_final(desc, out);

return 0;
}

/**
* ubifs_bad_hash - Report hash mismatches
* @c: UBIFS file-system description object
Expand Down

0 comments on commit fb9a5a3

Please sign in to comment.