Skip to content

Commit bf6dab7

Browse files
Zhihao Chengrichardweinberger
authored andcommitted
ubifs: ubifs_dump_sleb: Remove unused function
Function ubifs_dump_sleb() is defined but unused, it can be removed. Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent a33e30a commit bf6dab7

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

fs/ubifs/debug.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -828,22 +828,6 @@ void ubifs_dump_lpt_info(struct ubifs_info *c)
828828
spin_unlock(&dbg_lock);
829829
}
830830

831-
void ubifs_dump_sleb(const struct ubifs_info *c,
832-
const struct ubifs_scan_leb *sleb, int offs)
833-
{
834-
struct ubifs_scan_node *snod;
835-
836-
pr_err("(pid %d) start dumping scanned data from LEB %d:%d\n",
837-
current->pid, sleb->lnum, offs);
838-
839-
list_for_each_entry(snod, &sleb->nodes, list) {
840-
cond_resched();
841-
pr_err("Dumping node at LEB %d:%d len %d\n",
842-
sleb->lnum, snod->offs, snod->len);
843-
ubifs_dump_node(c, snod->node);
844-
}
845-
}
846-
847831
void ubifs_dump_leb(const struct ubifs_info *c, int lnum)
848832
{
849833
struct ubifs_scan_leb *sleb;

fs/ubifs/debug.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,6 @@ void ubifs_dump_lprop(const struct ubifs_info *c,
252252
void ubifs_dump_lprops(struct ubifs_info *c);
253253
void ubifs_dump_lpt_info(struct ubifs_info *c);
254254
void ubifs_dump_leb(const struct ubifs_info *c, int lnum);
255-
void ubifs_dump_sleb(const struct ubifs_info *c,
256-
const struct ubifs_scan_leb *sleb, int offs);
257255
void ubifs_dump_znode(const struct ubifs_info *c,
258256
const struct ubifs_znode *znode);
259257
void ubifs_dump_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap,

0 commit comments

Comments
 (0)