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

From: Peter Chubb (peter@chubb.wattle.id.au)
Date: Thu May 30 2002 - 21:16:33 EST


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.

===== drivers/ide/ide-cd.c 1.48 vs edited =====
--- 1.48/drivers/ide/ide-cd.c Fri May 24 11:19:15 2002
+++ edited/drivers/ide/ide-cd.c Fri May 31 12:05:41 2002
@@ -2480,8 +2480,8 @@
         devinfo->dev = mk_kdev(drive->channel->major, minor);
         devinfo->ops = &ide_cdrom_dops;
         devinfo->mask = 0;
- *(int *)&devinfo->speed = CDROM_STATE_FLAGS (drive)->current_speed;
- *(int *)&devinfo->capacity = nslots;
+ devinfo->speed = CDROM_STATE_FLAGS (drive)->current_speed;
+ devinfo->capacity = nslots;
         devinfo->handle = (void *) drive;
         strcpy(devinfo->name, drive->name);
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri May 31 2002 - 22:00:30 EST