Commit 4fbda124 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds

[PATCH] fix sr compile warnings

Remove an unused label and an unused variable.
parent 8829c752
......@@ -697,8 +697,6 @@ static int sr_registered;
static int sr_init()
{
int i;
if (sr_template.dev_noticed == 0)
return 0;
......@@ -723,8 +721,7 @@ static int sr_init()
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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment