[stgt] [PATCH] Remove the unneeded expression in the for loop

Malahal Naineni malahal at us.ibm.com
Fri Feb 12 06:13:34 CET 2010


diff -r 07e009f3609d -r 5d646ecba14a usr/spc.c
--- a/usr/spc.c	Thu Feb 11 21:06:30 2010 -0800
+++ b/usr/spc.c	Thu Feb 11 21:08:48 2010 -0800
@@ -122,7 +122,7 @@ static void update_vpd_80(struct scsi_lu
 
 		p = data + vpd_pg->size - 1;
 		q = sn + tmp - 1;
-		for (; tmp > 0; tmp--, q)
+		for (; tmp > 0; tmp--)
 			*(p--) = *(q--);
 	}
 }
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list