[RTEMS Project] #2684: rtems/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c:122: duplicate if
RTEMS trac
trac at rtems.org
Thu Apr 7 21:05:07 UTC 2016
#2684: rtems/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c:122: duplicate if
---------------------+--------------------
Reporter: dcb | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 4.11.1
Component: General | Version: 4.10
Severity: normal | Keywords:
---------------------+--------------------
rtems/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c:122]: (style) Expression
is always false because 'else if' condition matches previous condition at
line 116.
Source code is
} else if (state == 1) {
unsigned int ks = 1U << 5;
state = 0;
irqmp_ts->control = ks | s1_s2 | (unsigned int) clkirq;
} else if (state == 1) {
--
Ticket URL: <http://devel.rtems.org/ticket/2684>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list