Coverity Issue with bdbuf.c
Joel Sherrill
joel.sherrill at oarcorp.com
Wed Nov 19 23:10:41 UTC 2014
Hi
Coverity ID: 1255327
I think this looks like a legitimately flagged piece of code :
1537 * For unspecified cache alignments we use the CPU alignment.
1538 */
assignment: Assigning: cache_aligment = 32U.
1539 cache_aligment = 32; /* FIXME rtems_cache_get_data_line_size() */
const: At condition cache_aligment <= 0U, the value
of cache_aligment must be equal to 32.
dead_error_condition: The condition cache_aligment <= 0U cannot be true.
1540 if (cache_aligment <= 0)
CID 1255327 (#1 of 1): Logically dead code
(DEADCODE)dead_error_line: Execution cannot reach this
statement: cache_aligment = 8U;.
1541 cache_aligment = CPU_ALIGNMENT;
Josh .. can you check if CodeSonar flagged this?
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20141119/7e87f2d8/attachment-0001.html>
More information about the devel
mailing list