[PATCH] Possible SCSI (sr) mini-cleanup

Thunder from the hill (thunder@ngforever.de)
Tue, 7 May 2002 14:50:35 -0600 (MDT)


Hi,

I don't see where the variable and the label have been used. Are they
useful for anything? If they are, tell me please!

Regards,
Thunder

diff -Nur linus-2.5/drivers/scsi/sr.c thunder-2.5/drivers/scsi/sr.c
--- linus-2.5/drivers/scsi/sr.c Tue May 7 14:28:57 2002
+++ thunder-2.5/drivers/scsi/sr.c Tue May 7 14:27:10 2002
@@ -697,8 +697,6 @@

static int sr_init()
{
- int i;
-
if (sr_template.dev_noticed == 0)
return 0;

@@ -723,8 +721,6 @@
goto cleanup_cds;
memset(sr_sizes, 0, sr_template.dev_max * sizeof(int));
return 0;
-cleanup_sizes:
- kfree(sr_sizes);
cleanup_cds:
kfree(scsi_CDs);
cleanup_devfs:

-- 
if (errno == ENOTAVAIL)
    fprintf(stderr, "Error: Talking to Microsoft server!\n");

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