[RTEMS Project] #2773: c/src/lib/libcpu/sh/sh7032/clock/ckinit.c:210: possible bad expression ?

RTEMS trac trac at rtems.org
Mon Aug 8 06:07:01 UTC 2016


#2773: c/src/lib/libcpu/sh/sh7032/clock/ckinit.c:210: possible bad expression ?
---------------------+--------------------
 Reporter:  dcb      |      Owner:
     Type:  defect   |     Status:  new
 Priority:  normal   |  Milestone:  4.11.1
Component:  General  |    Version:  4.10
 Severity:  normal   |   Keywords:
---------------------+--------------------
 c/src/lib/libcpu/sh/sh7032/clock/ckinit.c:210]: (style) Expression '(X |
 0xffff) > 0x0' is always true.

 Source code is

   if ( ( cclicks_per_tick | 0xffff ) > 0 )

 Maybe

   if ( ( cclicks_per_tick & 0xffff ) > 0 )

 was intended ?

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


More information about the bugs mailing list