Commit 244417ca authored by Peter Chubb's avatar Peter Chubb Committed by Linus Torvalds

[PATCH] bogus casts in ide-cd.c:

  This patch against 2.5.19 gets rid of some bogus casts in ide-cd.c
  In my opinion the casts as is are bugs waiting to happen.
parent d0f3b7fd
...@@ -2477,8 +2477,8 @@ static int ide_cdrom_register(struct ata_device *drive, int nslots) ...@@ -2477,8 +2477,8 @@ static int ide_cdrom_register(struct ata_device *drive, int nslots)
devinfo->dev = mk_kdev(drive->channel->major, minor); devinfo->dev = mk_kdev(drive->channel->major, minor);
devinfo->ops = &ide_cdrom_dops; devinfo->ops = &ide_cdrom_dops;
devinfo->mask = 0; devinfo->mask = 0;
*(int *)&devinfo->speed = CDROM_STATE_FLAGS (drive)->current_speed; devinfo->speed = CDROM_STATE_FLAGS (drive)->current_speed;
*(int *)&devinfo->capacity = nslots; devinfo->capacity = nslots;
devinfo->handle = (void *) drive; devinfo->handle = (void *) drive;
strcpy(devinfo->name, drive->name); strcpy(devinfo->name, drive->name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment