diff options
-rw-r--r-- | drivers/scsi/osst.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/scsi/osst.c b/drivers/scsi/osst.c index 8f21cbbd7aaf..13f908cb0674 100644 --- a/drivers/scsi/osst.c +++ b/drivers/scsi/osst.c | |||
@@ -5286,11 +5286,6 @@ static int enlarge_buffer(struct osst_buffer *STbuffer, int need_dma) | |||
5286 | struct page *page = alloc_pages(priority, (OS_FRAME_SIZE - got <= PAGE_SIZE) ? 0 : order); | 5286 | struct page *page = alloc_pages(priority, (OS_FRAME_SIZE - got <= PAGE_SIZE) ? 0 : order); |
5287 | STbuffer->sg[segs].offset = 0; | 5287 | STbuffer->sg[segs].offset = 0; |
5288 | if (page == NULL) { | 5288 | if (page == NULL) { |
5289 | if (OS_FRAME_SIZE - got <= (max_segs - segs) * b_size / 2 && order) { | ||
5290 | b_size /= 2; /* Large enough for the rest of the buffers */ | ||
5291 | order--; | ||
5292 | continue; | ||
5293 | } | ||
5294 | printk(KERN_WARNING "osst :W: Failed to enlarge buffer to %d bytes.\n", | 5289 | printk(KERN_WARNING "osst :W: Failed to enlarge buffer to %d bytes.\n", |
5295 | OS_FRAME_SIZE); | 5290 | OS_FRAME_SIZE); |
5296 | #if DEBUG | 5291 | #if DEBUG |