Changes in uspace/drv/block/pci-ide/main.c [2a5d4649:07039850] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/pci-ide/main.c
r2a5d4649 r07039850 136 136 pci_ide_hwres_t res; 137 137 async_sess_t *parent_sess; 138 unsigned chans;139 138 errno_t rc; 140 139 … … 158 157 goto error; 159 158 160 chans = 0;161 162 159 rc = pci_ide_channel_init(ctrl, &ctrl->channel[0], 0, &res); 163 if (rc == EOK) 164 ++chans; 165 else if (rc != ENOENT) 160 if (rc == ENOENT) 166 161 goto error; 167 162 168 163 rc = pci_ide_channel_init(ctrl, &ctrl->channel[1], 1, &res); 169 if (rc == EOK) 170 ++chans; 171 else if (rc != ENOENT) 172 goto error; 173 174 if (chans == 0) { 175 ddf_msg(LVL_ERROR, "No PCI IDE devices found."); 164 if (rc == ENOENT) 165 goto error; 166 167 if (rc != EOK) { 168 ddf_msg(LVL_ERROR, "Failed initializing ATA controller."); 176 169 rc = EIO; 177 170 goto error;
Note:
See TracChangeset
for help on using the changeset viewer.