[PATCH 03/16] FIX: remove unnecessary load_super() call

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

 



Code cleanup. Remove unnecessary load_super() call

Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx>
---

 super-intel.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/super-intel.c b/super-intel.c
index 6697257..0a27836 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -8159,14 +8159,6 @@ int imsm_manage_container_reshape(struct supertype *st, char *backup)
 			int array;
 
 			for (i = 0; i < mpb->num_raid_devs; i++) {
-				struct intel_super *super;
-
-				st->ss->load_super(st, fd, NULL);
-				if (st->sb == NULL) {
-					dprintf("cannot get sb\n");
-					ret_val = 1;
-					goto imsm_manage_container_reshape_exit;
-				}
 				info2.devs = NULL;
 				super = st->sb;
 				super->current_vol = i;

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux