Skip to content

Commit 4fb1cd8

Browse files
Jiang Biaorichardweinberger
authored andcommitted
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 <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent cc19478 commit 4fb1cd8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

fs/ubifs/lprops.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ static void remove_from_lpt_heap(struct ubifs_info *c,
244244
/**
245245
* lpt_heap_replace - replace lprops in a category heap.
246246
* @c: UBIFS file-system description object
247-
* @old_lprops: LEB properties to replace
248247
* @new_lprops: LEB properties with which to replace
249248
* @cat: LEB category
250249
*
@@ -254,7 +253,6 @@ static void remove_from_lpt_heap(struct ubifs_info *c,
254253
* lprops. This function does that.
255254
*/
256255
static void lpt_heap_replace(struct ubifs_info *c,
257-
struct ubifs_lprops *old_lprops,
258256
struct ubifs_lprops *new_lprops, int cat)
259257
{
260258
struct ubifs_lpt_heap *heap;
@@ -362,7 +360,7 @@ void ubifs_replace_cat(struct ubifs_info *c, struct ubifs_lprops *old_lprops,
362360
case LPROPS_DIRTY:
363361
case LPROPS_DIRTY_IDX:
364362
case LPROPS_FREE:
365-
lpt_heap_replace(c, old_lprops, new_lprops, cat);
363+
lpt_heap_replace(c, new_lprops, cat);
366364
break;
367365
case LPROPS_UNCAT:
368366
case LPROPS_EMPTY:

0 commit comments

Comments
 (0)