Changeset 9a8b2984 in rtems


Ignore:
Timestamp:
Oct 1, 2014, 1:16:23 PM (6 years ago)
Author:
Moroz.Oleg <oleg.moroz@…>
Branches:
4.11, master
Children:
7db6953
Parents:
93b000e
git-author:
Moroz.Oleg <oleg.moroz@…> (10/01/14 13:16:23)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/02/14 05:31:58)
Message:

Fix assertion "BUF != NULL" for i386

BSP_uart_termios_write_com1 and BSP_uart_termios_write_com2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/shared/comm/uart.c

    r93b000e r9a8b2984  
    569569BSP_uart_termios_write_com1(int minor, const char *buf, size_t len)
    570570{
     571  if(len <= 0)
     572    {
     573      return 0;
     574    }
     575
    571576  assert(buf != NULL);
    572 
    573   if(len <= 0)
    574     {
    575       return 0;
    576     }
    577577
    578578  /* If there TX buffer is busy - something is royally screwed up */
     
    603603BSP_uart_termios_write_com2(int minor, const char *buf, size_t len)
    604604{
     605  if(len <= 0)
     606    {
     607      return 0;
     608    }
     609
    605610  assert(buf != NULL);
    606 
    607   if(len <= 0)
    608     {
    609       return 0;
    610     }
    611611
    612612  /* If there TX buffer is busy - something is royally screwed up */
Note: See TracChangeset for help on using the changeset viewer.