Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Cluster Development (http://www.linux-archive.org/cluster-development/)
-   -   gfs2_edit: Remove a useless assignment (http://www.linux-archive.org/cluster-development/618003-gfs2_edit-remove-useless-assignment.html)

Andrew Price 01-06-2012 02:19 PM

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


All times are GMT. The time now is 08:05 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.