[PATCH 11/21] imsm: FIX: Remove unused parameter from save_backup_imsm() interface

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

 



new_data parameter is not used in save_backup_imsm().
It is removed from function interface.

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

 super-intel.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/super-intel.c b/super-intel.c
index b22c7df..708b51d 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -7677,9 +7677,9 @@ void init_migr_record_imsm(struct supertype *st, struct imsm_dev *dev,
  *		and to write it to the Copy Area.
  * Parameters:
  *	st		: supertype information
+ *	dev		: imsm device that backup is saved for
  *	info		: general array info
  *	buf		: input buffer
- *	write_offset	: address of data to backup
  *	length		: length of data to backup (blocks_per_unit)
  * Returns:
  *	 0 : success
@@ -7689,7 +7689,6 @@ int save_backup_imsm(struct supertype *st,
 		     struct imsm_dev *dev,
 		     struct mdinfo *info,
 		     void *buf,
-		     int new_data,
 		     int length)
 {
 	int rv = -1;
@@ -8811,8 +8810,7 @@ static int imsm_manage_reshape(
 			 * in backup general migration area
 			 */
 			if (save_backup_imsm(st, dev, sra,
-					     buf + start_buf_shift,
-					     ndata, copy_length)) {
+				buf + start_buf_shift, copy_length)) {
 				dprintf("imsm: Cannot save stripes to "
 					"target devices\n");
 				goto abort;

--
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