Changeset 2a8713a in rtems


Ignore:
Timestamp:
Jun 10, 2013, 12:10:49 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
58cde54
Parents:
c7bc6d4
git-author:
Sebastian Huber <sebastian.huber@…> (06/10/13 12:10:49)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/12/13 14:11:24)
Message:

termios: Avoid second return path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/termios.c

    rc7bc6d4 r2a8713a  
    13231323
    13241324    nToSend = 1;
     1325  } else if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {
     1326    /*
     1327     * buffer was empty
     1328     */
     1329    if (tty->rawOutBufState == rob_wait) {
     1330      /*
     1331       * this should never happen...
     1332       */
     1333      rtems_semaphore_release (tty->rawOutBuf.Semaphore);
     1334    }
     1335
     1336    nToSend = 0;
    13251337  } else {
    1326     if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {
    1327       /*
    1328        * buffer was empty
    1329        */
    1330       if (tty->rawOutBufState == rob_wait) {
    1331         /*
    1332          * this should never happen...
    1333          */
    1334         rtems_semaphore_release (tty->rawOutBuf.Semaphore);
    1335       }
    1336       return 0;
    1337     }
    1338 
    13391338    rtems_interrupt_disable(level);
    13401339    len = tty->t_dqlen;
Note: See TracChangeset for help on using the changeset viewer.