Cleaning patch for 2.1.130pre2

Andrzej Krzysztofowicz (ankry@green.mif.pg.gda.pl)
Tue, 24 Nov 1998 18:41:22 +0100 (EET)


Hi,
A cleaning patch against 2.1.130pre2 follows. It
- removes some warnings from scsi_debug
- comments out some unused code in scsi_proc

Regards
Andrzej

diff -u --recursive --new-file linux/drivers/scsi/scsi_debug.c linux-2.1.129/drivers/scsi/scsi_debug.c
--- linux/drivers/scsi/scsi_debug.c Wed Oct 14 20:43:13 1998
+++ linux-2.1.129/drivers/scsi/scsi_debug.c Sun Nov 22 23:40:30 1998
@@ -518,10 +518,7 @@
static void scsi_debug_intr_handle(unsigned long indx)
{
Scsi_Cmnd * SCtmp;
- int pending;
void (*my_done)(Scsi_Cmnd *);
- unsigned long flags;
- int to;

#if 0
del_timer(&timeout[indx]);
@@ -540,7 +537,7 @@

#ifdef DEBUG
printk("In intr_handle...");
- printk("...done %d %x %d %d\n",i , my_done, to, jiffies);
+ printk("...done %d %x %d\n",i , my_done, jiffies);
printk("In intr_handle: %d %x %x\n",i, SCtmp, my_done);
#endif

@@ -565,9 +562,11 @@

int scsi_debug_abort(Scsi_Cmnd * SCpnt)
{
+#if 0
int j;
void (*my_done)(Scsi_Cmnd *);
unsigned long flags;
+#endif

DEB(printk("scsi_debug_abort\n"));
#if 0
diff -u --recursive --new-file linux/drivers/scsi/scsi_proc.c linux-2.1.129/drivers/scsi/scsi_proc.c
--- linux/drivers/scsi/scsi_proc.c Mon Nov 23 08:15:16 1998
+++ linux-2.1.129/drivers/scsi/scsi_proc.c Sun Nov 22 21:43:14 1998
@@ -151,6 +151,7 @@
}
}

+#if 0
/*
* parseHandle *parseInit(char *buf, char *cmdList, int cmdNum);
* gets a pointer to a null terminated data buffer
@@ -262,6 +263,7 @@

return(cmdIndex);
}
+#endif

void proc_print_scsidevice(Scsi_Device *scd, char *buffer, int *size, int len)
{

-- 
=======================================================================
  Andrzej M. Krzysztofowicz               ankry@mif.pg.gda.pl
  tel.  (0-58) 347 14 61
Wydz.Fizyki Technicznej i Matematyki Stosowanej Politechniki Gdanskiej

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/