Changeset b2e26b7 in rtems


Ignore:
Timestamp:
Feb 12, 2018, 1:07:36 PM (4 years ago)
Author:
Christian Mauderer <christian.mauderer@…>
Branches:
5, master
Children:
dad79bb9
Parents:
bf70702
git-author:
Christian Mauderer <christian.mauderer@…> (02/12/18 13:07:36)
git-committer:
Christian Mauderer <christian.mauderer@…> (02/12/18 13:36:29)
Message:

dev/sc16is752: Check return values.

Escalate a failed installation of the interrupts to the next higher
level.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/dev/serial/sc16is752.c

    rbf70702 rb2e26b7  
    235235
    236236  rtems_termios_set_initial_baud(tty, 115200);
    237   sc16is752_set_attributes(base, term);
    238 
    239   (*ctx->install_irq)(ctx);
    240 
    241   return true;
     237  ok = sc16is752_set_attributes(base, term);
     238  if (!ok) {
     239    return ok;
     240  }
     241
     242  ok = (*ctx->install_irq)(ctx);
     243  return ok;
    242244}
    243245
Note: See TracChangeset for help on using the changeset viewer.