[ide] remove stale comment from ide-proc.c

ide-default driver was added long time ago.
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent ba4a4d6a
...@@ -361,26 +361,13 @@ static int proc_ide_read_identify ...@@ -361,26 +361,13 @@ static int proc_ide_read_identify
len = sprintf(page, "\n"); len = sprintf(page, "\n");
if (drive) if (drive) {
{
unsigned short *val = (unsigned short *) page; unsigned short *val = (unsigned short *) page;
/* BUG_ON(!drive->driver);
* The current code can't handle a driverless
* identify query taskfile. Now the right fix is
* to add a 'default' driver but that is a bit
* more work.
*
* FIXME: this has to be fixed for hotswap devices
*/
if(DRIVER(drive))
err = taskfile_lib_get_identify(drive, page); err = taskfile_lib_get_identify(drive, page);
else /* This relies on the ID changes */ if (!err) {
val = (unsigned short *)drive->id;
if(!err)
{
char *out = ((char *)page) + (SECTOR_WORDS * 4); char *out = ((char *)page) + (SECTOR_WORDS * 4);
page = out; page = out;
do { do {
......
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