A variable that is constant throughout the whole function and not used
in other statements except for keeping its value; probably a debugging
leftover.
--- ./gnumach/linux/src/drivers/scsi/sr.c 2013-06-01 20:41:44.358545464 +0200
+++ ./gnumach1/linux/src/drivers/scsi/sr.c 2013-06-05 10:11:22.746388719 +0200
@@ -719,11 +719,9 @@
void requeue_sr_request (Scsi_Cmnd * SCpnt)
{
unsigned int dev, block, realcount;
- unsigned char cmd[10], *buffer, tries;
+ unsigned char cmd[10], *buffer;
int this_count, start, end_rec;
- tries = 2;
-
repeat:
if(!SCpnt || SCpnt->request.rq_status == RQ_INACTIVE) {
do_sr_request();
@@ -738,14 +736,12 @@
if (dev >= sr_template.nr_dev) {
/* printk("CD-ROM request error: invalid device.\n"); */
SCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.nr_sectors);
- tries = 2;
goto repeat;
}
if (!scsi_CDs[dev].use) {
/* printk("CD-ROM request error: device marked not in use.\n"); */
SCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.nr_sectors);
- tries = 2;
goto repeat;
}
@@ -756,7 +752,6 @@
*/
/* printk("CD-ROM has been changed. Prohibiting further I/O.\n"); */
SCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.nr_sectors);
- tries = 2;
goto repeat;
}