[RTEMS Project] #3300: src/c/src/lib/libbsp/i386/pc386/console/uart_bus_pci.c:323: bad if statement ?

RTEMS trac trac at rtems.org
Wed Feb 14 15:13:00 UTC 2018


#3300: src/c/src/lib/libbsp/i386/pc386/console/uart_bus_pci.c:323: bad if
statement ?
------------------------------+--------------------
  Reporter:  David Binderman  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  normal           |  Milestone:
 Component:  admin            |    Version:
  Severity:  normal           |   Keywords:
Blocked By:                   |   Blocking:
------------------------------+--------------------
 [src/c/src/lib/libbsp/i386/pc386/console/uart_bus_pci.c:324]: (warning)
 Opposite inner 'if' condition leads to a dead code block.

 Source code is

     for ( i=0 ; pci_ns8250_ids[i].vendor != 0xffff ; i++ ) {
       if ( pci_ns8250_ids[i].vendor == 0xffff ) {
         break;
       }

--
Ticket URL: <http://devel.rtems.org/ticket/3300>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list