Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ata/src/ata.c

    r0dab4850 r3d2d455b  
    11/*
    2  * Copyright (c) 2025 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    257257
    258258        for (i = 0; i < MAX_DEVICES; i++) {
    259                 if (chan->device[i].present == false)
    260                         continue;
    261 
    262259                rc = ata_device_remove(&chan->device[i]);
    263260                if (rc != EOK) {
    264261                        ata_msg_error(chan, "Unable to remove device %d.", i);
    265                         fibril_mutex_unlock(&chan->lock);
    266                         return rc;
     262                        break;
    267263                }
    268264        }
     
    270266        ata_bd_fini_irq(chan);
    271267        fibril_mutex_unlock(&chan->lock);
    272         free(chan);
    273268
    274269        return rc;
     
    15371532         * exceed DMA buffer size.
    15381533         */
    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;
    15441537
    15451538        return maxnb;
Note: See TracChangeset for help on using the changeset viewer.