Ignore:
File:
1 edited

Legend:

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

    r0dab4850 rb8fd951  
    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) {
     
    15371534         * exceed DMA buffer size.
    15381535         */
    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         }
     1536        dma_maxnb = d->chan->params.max_dma_xfer / d->block_size;
     1537        if (dma_maxnb < maxnb)
     1538                maxnb = dma_maxnb;
    15441539
    15451540        return maxnb;
Note: See TracChangeset for help on using the changeset viewer.