patch-2.3.36 linux/drivers/scsi/ide-scsi.c

Next file: linux/drivers/scsi/megaraid.c
Previous file: linux/drivers/scsi/aha1542.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.35/linux/drivers/scsi/ide-scsi.c linux/drivers/scsi/ide-scsi.c
@@ -636,10 +636,9 @@
 {
 	ide_drive_t *drive = idescsi_drives[dev->id];
 	idescsi_scsi_t *scsi = drive->driver_data;
-	int enable = (int) arg;
 
 	if (cmd == SG_SET_TRANSFORM) {
-		if (enable)
+		if (arg)
 			set_bit(IDESCSI_SG_TRANSFORM, &scsi->transform);
 		else
 			clear_bit(IDESCSI_SG_TRANSFORM, &scsi->transform);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)