mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Possible SCSI (sr) mini-cleanup
@ 2002-05-07 20:50 Thunder from the hill
  2002-05-07 22:02 ` Andreas Dilger
  0 siblings, 1 reply; 4+ messages in thread
From: Thunder from the hill @ 2002-05-07 20:50 UTC (permalink / raw)
  To: Linux Kernel Mailing List

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");


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-05-07 22:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-07 20:50 [PATCH] Possible SCSI (sr) mini-cleanup Thunder from the hill
2002-05-07 22:02 ` Andreas Dilger
2002-05-07 22:12   ` David Weinehall
2002-05-07 22:39   ` Thunder from the hill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®