Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Xichao Zhao and committed by
Richard Weinberger
e3577061 6a23ae0a

+3 -3
+2 -2
fs/ubifs/io.c
··· 395 395 } 396 396 } 397 397 398 - void ubifs_crc_node(struct ubifs_info *c, void *node, int len) 398 + void ubifs_crc_node(void *node, int len) 399 399 { 400 400 struct ubifs_ch *ch = node; 401 401 uint32_t crc; ··· 432 432 return err; 433 433 } 434 434 435 - ubifs_crc_node(c, node, len); 435 + ubifs_crc_node(node, len); 436 436 437 437 return 0; 438 438 }
+1 -1
fs/ubifs/ubifs.h
··· 1747 1747 int ubifs_check_node(const struct ubifs_info *c, const void *buf, int len, 1748 1748 int lnum, int offs, int quiet, int must_chk_crc); 1749 1749 void ubifs_init_node(struct ubifs_info *c, void *buf, int len, int pad); 1750 - void ubifs_crc_node(struct ubifs_info *c, void *buf, int len); 1750 + void ubifs_crc_node(void *buf, int len); 1751 1751 void ubifs_prepare_node(struct ubifs_info *c, void *buf, int len, int pad); 1752 1752 int ubifs_prepare_node_hmac(struct ubifs_info *c, void *node, int len, 1753 1753 int hmac_offs, int pad);