summaryrefslogtreecommitdiff
path: root/drivers/cdrom
diff options
context:
space:
mode:
authorDave Jones <davej@codemonkey.org.uk>2003-03-20 05:53:52 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2003-03-20 05:53:52 -0800
commitea3323f13be854779ead45c28d2db5cbb46e6ec7 (patch)
tree49e94b377feeb51cd074e8cb472930eb75a320e2 /drivers/cdrom
parentc2cf4faa53a2e487de4964042661782274c15743 (diff)
[PATCH] fix obvious thinko
Diffstat (limited to 'drivers/cdrom')
-rw-r--r--drivers/cdrom/cdu31a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cdrom/cdu31a.c b/drivers/cdrom/cdu31a.c
index f25d9ff0fda2..915afe6dfe71 100644
--- a/drivers/cdrom/cdu31a.c
+++ b/drivers/cdrom/cdu31a.c
@@ -1375,9 +1375,9 @@ read_data_block(char *buffer,
readahead_buffer + (2048 -
readahead_dataleft),
readahead_dataleft);
- readahead_dataleft = 0;
bytesleft -= readahead_dataleft;
offset += readahead_dataleft;
+ readahead_dataleft = 0;
} else {
/* The readahead will fill the whole buffer, get the data
and return. */