aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdrom/mcdx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cdrom/mcdx.c')
-rw-r--r--drivers/cdrom/mcdx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cdrom/mcdx.c b/drivers/cdrom/mcdx.c
index 4310cc84dfed..972ee9c8247c 100644
--- a/drivers/cdrom/mcdx.c
+++ b/drivers/cdrom/mcdx.c
@@ -596,7 +596,7 @@ static void do_mcdx_request(request_queue_t * q)
596 xtrace(REQUEST, "do_request() (%lu + %lu)\n", 596 xtrace(REQUEST, "do_request() (%lu + %lu)\n",
597 req->sector, req->nr_sectors); 597 req->sector, req->nr_sectors);
598 598
599 if (req->cmd != READ) { 599 if (rq_data_dir(req) != READ) {
600 xwarn("do_request(): non-read command to cd!!\n"); 600 xwarn("do_request(): non-read command to cd!!\n");
601 xtrace(REQUEST, "end_request(0): write\n"); 601 xtrace(REQUEST, "end_request(0): write\n");
602 end_request(req, 0); 602 end_request(req, 0);