lkml.org 
[lkml]   [2002]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH] Remove 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.

===== 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/
\
 
 \ /
  Last update: 2005-03-22 13:26    [W:7.675 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site