Skip to content

Commit e357706

Browse files
Xichao Zhaorichardweinberger
authored andcommitted
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 <[email protected]> Reviewed-by: Zhihao Cheng <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent 6a23ae0 commit e357706

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fs/ubifs/io.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ void ubifs_init_node(struct ubifs_info *c, void *node, int len, int pad)
395395
}
396396
}
397397

398-
void ubifs_crc_node(struct ubifs_info *c, void *node, int len)
398+
void ubifs_crc_node(void *node, int len)
399399
{
400400
struct ubifs_ch *ch = node;
401401
uint32_t crc;
@@ -432,7 +432,7 @@ int ubifs_prepare_node_hmac(struct ubifs_info *c, void *node, int len,
432432
return err;
433433
}
434434

435-
ubifs_crc_node(c, node, len);
435+
ubifs_crc_node(node, len);
436436

437437
return 0;
438438
}

fs/ubifs/ubifs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,7 @@ int ubifs_write_node_hmac(struct ubifs_info *c, void *buf, int len, int lnum,
17471747
int ubifs_check_node(const struct ubifs_info *c, const void *buf, int len,
17481748
int lnum, int offs, int quiet, int must_chk_crc);
17491749
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);
17511751
void ubifs_prepare_node(struct ubifs_info *c, void *buf, int len, int pad);
17521752
int ubifs_prepare_node_hmac(struct ubifs_info *c, void *node, int len,
17531753
int hmac_offs, int pad);

0 commit comments

Comments
 (0)