[RTEMS Project] #2874: src/c/src/lib/libbsp/powerpc/beatnik/marvell/gt_timer.c: 4 * pointless check ?

RTEMS trac trac at rtems.org
Thu Jan 19 20:52:11 UTC 2017


#2874: src/c/src/lib/libbsp/powerpc/beatnik/marvell/gt_timer.c: 4 * pointless
check ?
-------------------------+------------------
 Reporter:  dcb          |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  lowest       |  Milestone:  4.12
Component:  General      |    Version:  4.11
 Severity:  normal       |   Keywords:
-------------------------+------------------
 [src/c/src/lib/libbsp/powerpc/beatnik/marvell/gt_timer.c:102]: (style)
 Checking if unsigned variable 'timer' is less than zero.
 [src/c/src/lib/libbsp/powerpc/beatnik/marvell/gt_timer.c:109]: (style)
 Checking if unsigned variable 'timer' is less than zero.
 [src/c/src/lib/libbsp/powerpc/beatnik/marvell/gt_timer.c:117]: (style)
 Checking if unsigned variable 'timer' is less than zero.
 [src/c/src/lib/libbsp/powerpc/beatnik/marvell/gt_timer.c:128]: (style)
 Checking if unsigned variable 'timer' is less than zero.

 Parameter "timer" is only ever type uint32_t, so any check < 0 seem
 pointless.

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


More information about the bugs mailing list