[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] [PATCH 01/11] gfs2_edit: Remove a useless assignment



Spotted by coverity: Pointer "n" returned by "osi_prev(n)" is never used

Signed-off-by: Andrew Price <anprice redhat com>
---
 gfs2/edit/savemeta.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/gfs2/edit/savemeta.c b/gfs2/edit/savemeta.c
index ed9a7b0..9f7b2eb 100644
--- a/gfs2/edit/savemeta.c
+++ b/gfs2/edit/savemeta.c
@@ -710,7 +710,6 @@ void savemeta(char *out_fn, int saveoption, int gziplevel)
 			slow = ri_update(&sbd, 0, &rgcount, &sane);
 		n = osi_last(&sbd.rgtree);
 		last_rgd = (struct rgrp_tree *)n;
-		n = osi_prev(n);
 		fssize = last_rgd->ri.ri_addr + rgrp_size(last_rgd);
 		last_fs_block = fssize;
 		fssize *= sbd.bsize;
-- 
1.7.6.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]