Ignore:
Timestamp:
Aug 10, 2017, 11:21:16 PM (8 years ago)
Author:
David Azarewicz
Message:

Misc fixes. NULL pointer fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/ahci.c

    r190 r191  
    692692      if (rc)
    693693      {
    694        dprintf(0,"failed to register interrupt %d\n", ai->irq);
     694        dprintf(0,"failed to register interrupt %d\n", ai->irq);
    695695        return(-1);
    696696      }
     
    14981498  IORB_QUEUE done_queue;
    14991499  IORBH FAR16DATA *vIorb;
    1500   IORBH FAR16DATA *vNext = NULL;
     1500  IORBH FAR16DATA *vNext = FAR16NULL;
    15011501  u8 *port_mmio = port_base(ai, p);
    15021502  u32 irq_stat;
     
    15551555   *        processed after releasing the spinlock.
    15561556   */
    1557   for (vIorb = ai->ports[p].iorb_queue.vRoot; vIorb != NULL; vIorb = vNext)
     1557  for (vIorb = ai->ports[p].iorb_queue.vRoot; vIorb != FAR16NULL; vIorb = vNext)
    15581558  {
    15591559    IORBH *pIorb = Far16ToFlat(vIorb);
     
    15841584
    15851585  /* complete all IORBs in the done queue */
    1586   for (vIorb = done_queue.vRoot; vIorb != NULL; vIorb = vNext)
     1586  for (vIorb = done_queue.vRoot; vIorb != FAR16NULL; vIorb = vNext)
    15871587  {
    15881588    IORBH *pIorb = Far16ToFlat(vIorb);
Note: See TracChangeset for help on using the changeset viewer.