patch-2.0.26 linux/drivers/block/ide-tape.c

Next file: linux/drivers/block/ide.c
Previous file: linux/arch/i386/mm/init.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.25/linux/drivers/block/ide-tape.c linux/drivers/block/ide-tape.c
@@ -3717,7 +3717,7 @@
 	ide_drive_t *drive=idetape_chrdev.drive;
 	idetape_tape_t *tape=&(drive->tape);
 	char *buf_ptr=buf;
-	int bytes_read,temp,actually_read=0, original_count = count;
+	int bytes_read,temp,actually_read=0;
 
 #if IDETAPE_DEBUG_LOG
 	printk ("Reached idetape_chrdev_read\n");
@@ -3777,7 +3777,7 @@
 		tape->merge_buffer_size=bytes_read-temp;
 	}
 finish:
-	if (actually_read < original_count && tape->filemark)
+	if (!actually_read && tape->filemark)
 		idetape_space_over_filemarks (drive, MTFSF, 1);
 	return (actually_read);
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov