Commit ff94e4ae authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] stack reduction: ide-cd

From: Arjan van de Ven <arjanv@redhat.com>

ide-cd: a few 512 byte scratch buffers can be static; they are just for
putting "padding" sectors in that aren't used.

(acked by Jens)
parent 9b2bc421
...@@ -991,7 +991,7 @@ static void cdrom_buffer_sectors (ide_drive_t *drive, unsigned long sector, ...@@ -991,7 +991,7 @@ static void cdrom_buffer_sectors (ide_drive_t *drive, unsigned long sector,
/* Throw away any remaining data. */ /* Throw away any remaining data. */
while (sectors_to_transfer > 0) { while (sectors_to_transfer > 0) {
char dum[SECTOR_SIZE]; static char dum[SECTOR_SIZE];
HWIF(drive)->atapi_input_bytes(drive, dum, sizeof (dum)); HWIF(drive)->atapi_input_bytes(drive, dum, sizeof (dum));
--sectors_to_transfer; --sectors_to_transfer;
} }
...@@ -1118,7 +1118,7 @@ static ide_startstop_t cdrom_read_intr (ide_drive_t *drive) ...@@ -1118,7 +1118,7 @@ static ide_startstop_t cdrom_read_intr (ide_drive_t *drive)
while (nskip > 0) { while (nskip > 0) {
/* We need to throw away a sector. */ /* We need to throw away a sector. */
char dum[SECTOR_SIZE]; static char dum[SECTOR_SIZE];
HWIF(drive)->atapi_input_bytes(drive, dum, sizeof (dum)); HWIF(drive)->atapi_input_bytes(drive, dum, sizeof (dum));
--rq->current_nr_sectors; --rq->current_nr_sectors;
......
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