diff options
author | Zhang Jianhua <chris.zjh@huawei.com> | 2022-05-18 16:22:56 +0300 |
---|---|---|
committer | Eric Biggers <ebiggers@google.com> | 2022-05-18 21:01:31 +0300 |
commit | b0487ede1f7a1e7ee231c110af8a8bec3f6c0be2 (patch) | |
tree | 75111ff223ea03111426ce4d5b111e08ecfb6cf4 /fs/verity/enable.c | |
parent | 42226c989789d8da4af1de0c31070c96726d990c (diff) | |
download | linux-b0487ede1f7a1e7ee231c110af8a8bec3f6c0be2.tar.xz |
fs-verity: remove unused parameter desc_size in fsverity_create_info()
The parameter desc_size in fsverity_create_info() is useless and it is
not referenced anywhere. The greatest meaning of desc_size here is to
indecate the size of struct fsverity_descriptor and futher calculate the
size of signature. However, the desc->sig_size can do it also and it is
indeed, so remove it.
Therefore, it is no need to acquire desc_size by fsverity_get_descriptor()
in ensure_verity_info(), so remove the parameter desc_ret in
fsverity_get_descriptor() too.
Signed-off-by: Zhang Jianhua <chris.zjh@huawei.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20220518132256.2297655-1-chris.zjh@huawei.com
Diffstat (limited to 'fs/verity/enable.c')
-rw-r--r-- | fs/verity/enable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/verity/enable.c b/fs/verity/enable.c index 60a4372aa4d7..0f953bae1747 100644 --- a/fs/verity/enable.c +++ b/fs/verity/enable.c @@ -281,7 +281,7 @@ static int enable_verity(struct file *filp, * from disk. This is simpler, and it serves as an extra check that the * metadata we're writing is valid before actually enabling verity. */ - vi = fsverity_create_info(inode, desc, desc_size); + vi = fsverity_create_info(inode, desc); if (IS_ERR(vi)) { err = PTR_ERR(vi); goto rollback; |