Dont call ata_start() when ata_reinit fails in the ioctl path.

This commit is contained in:
Søren Schmidt 2008-05-26 08:58:48 +00:00
parent 9f2c7365ab
commit 454f3b9249

View file

@ -376,7 +376,6 @@ ata_ioctl(struct cdev *dev, u_long cmd, caddr_t data,
!(device = devclass_get_device(ata_devclass, *value)))
return ENXIO;
error = ata_reinit(device);
ata_start(device);
break;
case IOCATAATTACH: