lkml.org 
[lkml]   [2003]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] minor scsi cleanup in 2.4.x
Date
Attached is a patch (based off of 2.4.19) which removes 2 unnecessary
externs and adds a new scsi device type string. The externs are unnecessary
since the array is declared extern in scsi.h. The string change is
consistent with the SCSI-3 standard.

To whom it may concern, please apply. :-)

Thanks,
Bill
--- g_NCR5380.c 2003/04/10 15:43:13 1.1
+++ g_NCR5380.c 2003/04/10 15:43:27
@@ -781,7 +781,6 @@
struct NCR5380_hostdata *hostdata;
#ifdef NCR5380_STATS
Scsi_Device *dev;
- extern const char *const scsi_device_types[MAX_SCSI_DEVICE_CODE];
#endif
save_flags(flags);
cli();
--- scsi_proc.c 2003/04/10 15:42:04 1.1
+++ scsi_proc.c 2003/04/10 15:42:31
@@ -260,7 +260,6 @@
{

int x, y = *size;
- extern const char *const scsi_device_types[MAX_SCSI_DEVICE_CODE];

y = sprintf(buffer + len,
"Host: scsi%d Channel: %02d Id: %02d Lun: %02d\n Vendor: ",
--- scsi.c 2003/04/10 15:29:17 1.1
+++ scsi.c 2003/04/10 15:31:11
@@ -140,7 +140,7 @@
"Communications ",
"Unknown ",
"Unknown ",
- "Unknown ",
+ "Storage Array ",
"Enclosure ",
};
\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.025 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site