diff options
author | Jiang Biao <jiang.biao2@zte.com.cn> | 2018-02-27 21:22:37 -0500 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2018-04-04 17:48:11 -0400 |
commit | 4fb1cd82302e2aa87bb4876d67f3ed679f1f4a04 (patch) | |
tree | 75530f4aa8c4958e45df2c330712cb5c1fdfe105 /fs | |
parent | cc1947834827379a5fd66e8b73969fd7eaab4516 (diff) |
ubifs: Remove useless parameter of lpt_heap_replace
The parameter *old_lprops* is never used in lpt_heap_replace(),
remove it to avoid compile warning.
Signed-off-by: Jiang Biao <jiang.biao2@zte.com.cn>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ubifs/lprops.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/ubifs/lprops.c b/fs/ubifs/lprops.c index 6c3a1abd0e22..f5a46844340c 100644 --- a/fs/ubifs/lprops.c +++ b/fs/ubifs/lprops.c | |||
@@ -244,7 +244,6 @@ static void remove_from_lpt_heap(struct ubifs_info *c, | |||
244 | /** | 244 | /** |
245 | * lpt_heap_replace - replace lprops in a category heap. | 245 | * lpt_heap_replace - replace lprops in a category heap. |
246 | * @c: UBIFS file-system description object | 246 | * @c: UBIFS file-system description object |
247 | * @old_lprops: LEB properties to replace | ||
248 | * @new_lprops: LEB properties with which to replace | 247 | * @new_lprops: LEB properties with which to replace |
249 | * @cat: LEB category | 248 | * @cat: LEB category |
250 | * | 249 | * |
@@ -254,7 +253,6 @@ static void remove_from_lpt_heap(struct ubifs_info *c, | |||
254 | * lprops. This function does that. | 253 | * lprops. This function does that. |
255 | */ | 254 | */ |
256 | static void lpt_heap_replace(struct ubifs_info *c, | 255 | static void lpt_heap_replace(struct ubifs_info *c, |
257 | struct ubifs_lprops *old_lprops, | ||
258 | struct ubifs_lprops *new_lprops, int cat) | 256 | struct ubifs_lprops *new_lprops, int cat) |
259 | { | 257 | { |
260 | struct ubifs_lpt_heap *heap; | 258 | struct ubifs_lpt_heap *heap; |
@@ -362,7 +360,7 @@ void ubifs_replace_cat(struct ubifs_info *c, struct ubifs_lprops *old_lprops, | |||
362 | case LPROPS_DIRTY: | 360 | case LPROPS_DIRTY: |
363 | case LPROPS_DIRTY_IDX: | 361 | case LPROPS_DIRTY_IDX: |
364 | case LPROPS_FREE: | 362 | case LPROPS_FREE: |
365 | lpt_heap_replace(c, old_lprops, new_lprops, cat); | 363 | lpt_heap_replace(c, new_lprops, cat); |
366 | break; | 364 | break; |
367 | case LPROPS_UNCAT: | 365 | case LPROPS_UNCAT: |
368 | case LPROPS_EMPTY: | 366 | case LPROPS_EMPTY: |