diff options
Diffstat (limited to 'drivers/ide/ide-cd.c')
-rw-r--r-- | drivers/ide/ide-cd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 1495fe7a6ecf..c8d0e8715997 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c | |||
@@ -1178,11 +1178,10 @@ static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive) | |||
1178 | else | 1178 | else |
1179 | rq->data += blen; | 1179 | rq->data += blen; |
1180 | } | 1180 | } |
1181 | if (!write && blk_sense_request(rq)) | ||
1182 | rq->sense_len += blen; | ||
1181 | } | 1183 | } |
1182 | 1184 | ||
1183 | if (write && blk_sense_request(rq)) | ||
1184 | rq->sense_len += thislen; | ||
1185 | |||
1186 | /* | 1185 | /* |
1187 | * pad, if necessary | 1186 | * pad, if necessary |
1188 | */ | 1187 | */ |