Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/block/pci-ide/pci-ide.c

    r832cbe7 r221daa5  
    11/*
    2  * Copyright (c) 2025 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    150150        ctrl->bmregs_physical = res->bmregs;
    151151
    152         ddf_msg(LVL_NOTE, "Bus master IDE regs I/O address: 0x%" PRIxPTR,
     152        ddf_msg(LVL_NOTE, "Bus master IDE regs I/O address: 0x%lx",
    153153            ctrl->bmregs_physical);
    154154
     
    186186        bool irq_inited = false;
    187187        ata_params_t params;
    188         void *buffer = NULL;
     188        void *buffer;
    189189
    190190        ddf_msg(LVL_DEBUG, "pci_ide_channel_init()");
    191 
    192         memset(&params, 0, sizeof(params));
    193191
    194192        chan->ctrl = ctrl;
     
    296294        return EOK;
    297295error:
    298         if (chan->channel != NULL) {
    299                 (void) ata_channel_destroy(chan->channel);
    300                 chan->channel = NULL;
    301         }
    302         if (buffer != NULL)
    303                 dmamem_unmap_anonymous(buffer);
    304296        if (irq_inited)
    305297                pci_ide_fini_irq(chan);
     
    323315        }
    324316
    325         dmamem_unmap_anonymous(chan->dma_buf);
    326317        pci_ide_fini_irq(chan);
    327318        pci_ide_fini_io(chan);
Note: See TracChangeset for help on using the changeset viewer.