diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-05-14 10:18:14 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2018-06-07 15:53:14 +0200 |
commit | c971dad849bd71930738c2bd1d0691b730fa2ae7 (patch) | |
tree | 86ee21a0cb1e5c5424f0f2ff30c108213665df1e /fs/ubifs | |
parent | 422edacec0927b091ea5c32384f9d5b89efec1c1 (diff) | |
download | linux-c971dad849bd71930738c2bd1d0691b730fa2ae7.tar.gz linux-c971dad849bd71930738c2bd1d0691b730fa2ae7.tar.bz2 linux-c971dad849bd71930738c2bd1d0691b730fa2ae7.zip |
ubifs: remove set but never used variable
replay_sqnum is set but never used. Remove it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs')
-rw-r--r-- | fs/ubifs/replay.c | 3 | ||||
-rw-r--r-- | fs/ubifs/ubifs.h | 2 |
2 files changed, 0 insertions, 5 deletions
diff --git a/fs/ubifs/replay.c b/fs/ubifs/replay.c index ae5c02f22f3e..f10a72a75ed7 100644 --- a/fs/ubifs/replay.c +++ b/fs/ubifs/replay.c @@ -223,9 +223,6 @@ static int apply_replay_entry(struct ubifs_info *c, struct replay_entry *r) dbg_mntk(&r->key, "LEB %d:%d len %d deletion %d sqnum %llu key ", r->lnum, r->offs, r->len, r->deletion, r->sqnum); - /* Set c->replay_sqnum to help deal with dangling branches. */ - c->replay_sqnum = r->sqnum; - if (is_hash_key(c, &r->key)) { if (r->deletion) err = ubifs_tnc_remove_nm(c, &r->key, &r->nm); diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h index 5ee7af879cc4..209d6369ae71 100644 --- a/fs/ubifs/ubifs.h +++ b/fs/ubifs/ubifs.h @@ -1206,7 +1206,6 @@ struct ubifs_debug_info; * @replay_list: temporary list used during journal replay * @replay_buds: list of buds to replay * @cs_sqnum: sequence number of first node in the log (commit start node) - * @replay_sqnum: sequence number of node currently being replayed * @unclean_leb_list: LEBs to recover when re-mounting R/O mounted FS to R/W * mode * @rcvrd_mst_node: recovered master node to write when re-mounting R/O mounted @@ -1438,7 +1437,6 @@ struct ubifs_info { struct list_head replay_list; struct list_head replay_buds; unsigned long long cs_sqnum; - unsigned long long replay_sqnum; struct list_head unclean_leb_list; struct ubifs_mst_node *rcvrd_mst_node; struct rb_root size_tree; |