Changes in uspace/lib/ata/src/ata.c [0dab4850:3d2d455b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ata/src/ata.c
r0dab4850 r3d2d455b 1 1 /* 2 * Copyright (c) 202 5Jiri Svoboda2 * Copyright (c) 2024 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 257 257 258 258 for (i = 0; i < MAX_DEVICES; i++) { 259 if (chan->device[i].present == false)260 continue;261 262 259 rc = ata_device_remove(&chan->device[i]); 263 260 if (rc != EOK) { 264 261 ata_msg_error(chan, "Unable to remove device %d.", i); 265 fibril_mutex_unlock(&chan->lock); 266 return rc; 262 break; 267 263 } 268 264 } … … 270 266 ata_bd_fini_irq(chan); 271 267 fibril_mutex_unlock(&chan->lock); 272 free(chan);273 268 274 269 return rc; … … 1537 1532 * exceed DMA buffer size. 1538 1533 */ 1539 if (d->chan->params.use_dma) { 1540 dma_maxnb = d->chan->params.max_dma_xfer / d->block_size; 1541 if (dma_maxnb < maxnb) 1542 maxnb = dma_maxnb; 1543 } 1534 dma_maxnb = d->chan->params.max_dma_xfer / d->block_size; 1535 if (dma_maxnb < maxnb) 1536 maxnb = dma_maxnb; 1544 1537 1545 1538 return maxnb;
Note:
See TracChangeset
for help on using the changeset viewer.