diff options
| author | Xichao Zhao <zhao.xichao@vivo.com> | 2025-08-12 10:10:07 +0800 |
|---|---|---|
| committer | Richard Weinberger <richard@nod.at> | 2025-11-28 21:37:48 +0100 |
| commit | e35770610730af372659ef8d41199b556411c756 (patch) | |
| tree | dda41651cbdf7e6d69bc7e974189e988299a1435 | |
| parent | 6a23ae0a96a600d1d12557add110e0bb6e32730c (diff) | |
ubifs: Remove unnecessary parameters '*c'
Because the variable *c is not used within the function,
remove it from the ubifs_crc_node function.
Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
| -rw-r--r-- | fs/ubifs/io.c | 4 | ||||
| -rw-r--r-- | fs/ubifs/ubifs.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/ubifs/io.c b/fs/ubifs/io.c index a79f229df475..e0dfe6827d65 100644 --- a/fs/ubifs/io.c +++ b/fs/ubifs/io.c @@ -395,7 +395,7 @@ void ubifs_init_node(struct ubifs_info *c, void *node, int len, int pad) } } -void ubifs_crc_node(struct ubifs_info *c, void *node, int len) +void ubifs_crc_node(void *node, int len) { struct ubifs_ch *ch = node; uint32_t crc; @@ -432,7 +432,7 @@ int ubifs_prepare_node_hmac(struct ubifs_info *c, void *node, int len, return err; } - ubifs_crc_node(c, node, len); + ubifs_crc_node(node, len); return 0; } diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h index 49e50431741c..118392aa9f2a 100644 --- a/fs/ubifs/ubifs.h +++ b/fs/ubifs/ubifs.h @@ -1747,7 +1747,7 @@ int ubifs_write_node_hmac(struct ubifs_info *c, void *buf, int len, int lnum, int ubifs_check_node(const struct ubifs_info *c, const void *buf, int len, int lnum, int offs, int quiet, int must_chk_crc); void ubifs_init_node(struct ubifs_info *c, void *buf, int len, int pad); -void ubifs_crc_node(struct ubifs_info *c, void *buf, int len); +void ubifs_crc_node(void *buf, int len); void ubifs_prepare_node(struct ubifs_info *c, void *buf, int len, int pad); int ubifs_prepare_node_hmac(struct ubifs_info *c, void *node, int len, int hmac_offs, int pad); |
