Skip to content

Commit

Permalink
ide-cd: use ide_drive_t's rq in cdrom_queue_request_sense
Browse files Browse the repository at this point in the history
There should be no functionality change resulting from this patch.

Suggested-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Borislav Petkov authored and Bartlomiej Zolnierkiewicz committed Mar 27, 2009
1 parent 13b8860 commit 3f2154d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ static void cdrom_queue_request_sense(ide_drive_t *drive, void *sense,
struct request *failed_command)
{
struct cdrom_info *info = drive->driver_data;
struct request *rq = &info->request_sense_request;
struct request *rq = &drive->request_sense_rq;

ide_debug_log(IDE_DBG_SENSE, "enter");

Expand Down
2 changes: 0 additions & 2 deletions drivers/ide/ide-cd.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ struct cdrom_info {
on this device. */
struct request_sense sense_data;

struct request request_sense_request;

u8 max_speed; /* Max speed of the drive. */
u8 current_speed; /* Current speed of the drive. */

Expand Down

0 comments on commit 3f2154d

Please sign in to comment.