Skip to contentSkip to conversation

Remove dead code in 53c7xx driver

PATCH New Ben Collins 1 participant 1 message May 26, 2003 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove dead code in 53c7xx driver

While doing my strncpy duty, I came across some dead code in 53c7xx.c. Removed.

drivers/scsi/53c7xx.c +0 -33
Index: linux-2.5/drivers/scsi/53c7xx.c
===================================================================
@@ -360,41 +360,8 @@
 	{"","","","","","","",""};
 
 #define MAX_SETUP_STRINGS (sizeof(setup_strings) / sizeof(char *))
-#define SETUP_BUFFER_SIZE 200
-static char setup_buffer[SETUP_BUFFER_SIZE];
 static char setup_used[MAX_SETUP_STRINGS];
 
-void ncr53c7xx_setup (char *str, int *ints)
-{
-   int i;
-   char *p1, *p2;
-
-   p1 = setup_buffer;
-   *p1 = '\0';
-   if (str)
-      strncpy(p1, str, SETUP_BUFFER_SIZE - strlen(setup_buffer));
-   setup_buffer[SETUP_BUFFER_SIZE - 1] = '\0';
-   p1 = setup_buffer;
-   i = 0;
-   while (*p1 && (i < MAX_SETUP_STRINGS)) {
-      p2 = strchr(p1, ',');
-      if (p2) {
-         *p2 = '\0';
-         if (p1 != p2)
-            setup_strings[i] = p1;
-         p1 = p2 + 1;
-         i++;
-         }
-      else {
-         setup_strings[i] = p1;
-         break;
-         }
-      }
-   for (i=0; i<MAX_SETUP_STRINGS; i++)
-      setup_used[i] = 0;
-}
-
-
 /* check_setup_strings() returns index if key found, 0 if not
  */