<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi<br>
<br>
Coverity ID: 1255327<br>
<br>
I think this looks like a legitimately flagged piece of code :<br>
<br>
<div id="main-source-line-1537" class="source-line" style="color:
rgb(0, 0, 0); font-family: Consolas, 'Andale Mono WT', 'Andale
Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono
L', Monaco, 'Courier New', Courier, monospace; height: 1.3em;
white-space: nowrap; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 16.7999992370605px; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);"><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: inline-block; background-color: rgb(238, 238, 238);">1537</span><span
class="cpp_comment" style="color: rgb(83, 91, 94); font-style:
italic;"> * For unspecified cache alignments we use the CPU alignment.</span></div>
<div id="main-source-line-1538" class="source-line" style="color:
rgb(0, 0, 0); font-family: Consolas, 'Andale Mono WT', 'Andale
Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono
L', Monaco, 'Courier New', Courier, monospace; height: 1.3em;
white-space: nowrap; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 16.7999992370605px; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);"><span class="scm"
style="color: rgb(191, 191, 191); vertical-align: top; display:
inline-block; background-color: rgb(238, 238, 238);"></span><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: inline-block; background-color: rgb(238, 238, 238);">1538</span><span
class="cpp_comment" style="color: rgb(83, 91, 94); font-style:
italic;"> */</span></div>
<div class="event-wrapper" style="white-space: nowrap; display:
table; color: rgb(71, 71, 71); font-family: 'Helvetica Neue',
Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 16.7999992370605px; orphans:
auto; text-align: start; text-indent: 0px; text-transform: none;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">
<div class="event-row" style="display: table-row;"><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: table-cell; font-family: Consolas, 'Andale Mono WT',
'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter',
'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation
Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier,
monospace; background-color: rgb(238, 238, 238);"> </span>
<div id="defect-event-19722365-0" class="event-header with-event
code-event event-set-0 assignment grouped-event" style="color:
rgb(221, 68, 34); overflow: hidden; padding: 2px 2px 2px 25px;
white-space: normal; display: table-cell; border: 1px solid
transparent; cursor: pointer; background-image: none;
background-color: rgb(252, 242, 238); background-position: 1px
2px; background-repeat: no-repeat;"><span class="event-tag"
style="font-weight: 700;">assignment:</span> <span
class="description">Assigning:<span
class="Apple-converted-space"> </span><span class="code"
style="font-family: Consolas, 'Andale Mono WT', 'Andale
Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu
Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono',
'Nimbus Mono L', Monaco, 'Courier New', Courier,
monospace, serif; font-size: 1em; white-space: pre-line;
word-wrap: break-word; color: rgb(0, 0, 0); padding-left:
3px; padding-right: 3px;">cache_aligment</span><span
class="Apple-converted-space"> </span>=<span
class="Apple-converted-space"> </span><span class="code"
style="font-family: Consolas, 'Andale Mono WT', 'Andale
Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu
Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono',
'Nimbus Mono L', Monaco, 'Courier New', Courier,
monospace, serif; font-size: 1em; white-space: pre-line;
word-wrap: break-word; color: rgb(0, 0, 0); padding-left:
3px; padding-right: 3px;"><span class="cpp_literal"
style="color: inherit; font-style: inherit; font-weight:
inherit;">32U</span></span>.</span></div>
</div>
</div>
<div id="main-source-line-1539" class="source-line with-event
code-event event-set-0 assignment grouped-event" style="color:
rgb(0, 0, 0); font-family: Consolas, 'Andale Mono WT', 'Andale
Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono
L', Monaco, 'Courier New', Courier, monospace; height: 1.3em;
white-space: nowrap; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 16.7999992370605px; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);"><span class="scm"
style="color: rgb(191, 191, 191); vertical-align: top; display:
inline-block; background-color: rgb(238, 238, 238);"></span><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: inline-block; background-color: rgb(238, 238, 238);">1539</span> <span
id="xref-L-3801513-1665-3" class="xref xref-L-3801513-274"
style="cursor: pointer; border-width: 1px; border-style: solid;
border-color: transparent transparent rgb(204, 204, 204);">cache_aligment</span> = <span
class="cpp_literal" style="color: rgb(63, 78, 222);">32</span>; <span
class="cpp_comment" style="color: rgb(83, 91, 94); font-style:
italic;">/* FIXME rtems_cache_get_data_line_size() */</span></div>
<div class="event-wrapper" style="white-space: nowrap; display:
table; color: rgb(71, 71, 71); font-family: 'Helvetica Neue',
Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 16.7999992370605px; orphans:
auto; text-align: start; text-indent: 0px; text-transform: none;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">
<div class="event-row" style="display: table-row;"><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: table-cell; font-family: Consolas, 'Andale Mono WT',
'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter',
'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation
Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier,
monospace; background-color: rgb(238, 238, 238);"> </span>
<div id="defect-event-19722365-1" class="event-header with-event
code-event event-set-0 const grouped-event" style="color:
rgb(221, 68, 34); overflow: hidden; padding: 2px 2px 2px 25px;
white-space: normal; display: table-cell; border: 1px solid
transparent; cursor: pointer; background-image: none;
background-color: rgb(252, 242, 238); background-position: 1px
2px; background-repeat: no-repeat;"><span class="event-tag"
style="font-weight: 700;">const:</span> <span
class="description">At condition<span
class="Apple-converted-space"> </span><span class="code"
style="font-family: Consolas, 'Andale Mono WT', 'Andale
Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu
Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono',
'Nimbus Mono L', Monaco, 'Courier New', Courier,
monospace, serif; font-size: 1em; white-space: pre-line;
word-wrap: break-word; color: rgb(0, 0, 0); padding-left:
3px; padding-right: 3px;">cache_aligment <= <span
class="cpp_literal" style="color: inherit; font-style:
inherit; font-weight: inherit;">0U</span></span>, the
value of<span class="Apple-converted-space"> </span><span
class="code" style="font-family: Consolas, 'Andale Mono
WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans
Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans
Mono', 'Liberation Mono', 'Nimbus Mono L', Monaco,
'Courier New', Courier, monospace, serif; font-size: 1em;
white-space: pre-line; word-wrap: break-word; color:
rgb(0, 0, 0); padding-left: 3px; padding-right: 3px;">cache_aligment</span><span
class="Apple-converted-space"> </span>must be equal to 32.</span></div>
</div>
</div>
<div class="event-wrapper" style="white-space: nowrap; display:
table; color: rgb(71, 71, 71); font-family: 'Helvetica Neue',
Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 16.7999992370605px; orphans:
auto; text-align: start; text-indent: 0px; text-transform: none;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">
<div class="event-row" style="display: table-row;"><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: table-cell; font-family: Consolas, 'Andale Mono WT',
'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter',
'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation
Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier,
monospace; background-color: rgb(238, 238, 238);"> </span>
<div id="defect-event-19722365-2" class="event-header with-event
code-event event-set-0 dead_error_condition grouped-event"
style="color: rgb(221, 68, 34); overflow: hidden; padding: 2px
2px 2px 25px; white-space: normal; display: table-cell;
border: 1px solid transparent; cursor: pointer;
background-image: none; background-color: rgb(252, 242, 238);
background-position: 1px 2px; background-repeat: no-repeat;"><span
class="event-tag" style="font-weight: 700;">dead_error_condition:</span> <span
class="description">The condition<span
class="Apple-converted-space"> </span><span class="code"
style="font-family: Consolas, 'Andale Mono WT', 'Andale
Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu
Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono',
'Nimbus Mono L', Monaco, 'Courier New', Courier,
monospace, serif; font-size: 1em; white-space: pre-line;
word-wrap: break-word; color: rgb(0, 0, 0); padding-left:
3px; padding-right: 3px;">cache_aligment <= <span
class="cpp_literal" style="color: inherit; font-style:
inherit; font-weight: inherit;">0U</span></span><span
class="Apple-converted-space"> </span>cannot be true.</span></div>
</div>
</div>
<div id="main-source-line-1540" class="source-line with-event
code-event event-set-0 const dead_error_condition grouped-event"
style="color: rgb(0, 0, 0); font-family: Consolas, 'Andale Mono
WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter',
'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono',
'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace;
height: 1.3em; white-space: nowrap; font-size: 12px; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: 16.7999992370605px; orphans: auto;
text-align: start; text-indent: 0px; text-transform: none; widows:
auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);"><span class="scm"
style="color: rgb(191, 191, 191); vertical-align: top; display:
inline-block; background-color: rgb(238, 238, 238);"></span><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: inline-block; background-color: rgb(238, 238, 238);">1540</span> <span
class="cpp_keyword" style="font-weight: 700;">if</span> (<span
id="xref-L-3801513-595-2" class="xref xref-L-3801513-274"
style="cursor: pointer; border-width: 1px; border-style: solid;
border-color: transparent transparent rgb(204, 204, 204);">cache_aligment</span> <= <span
class="cpp_literal" style="color: rgb(63, 78, 222);">0</span>)</div>
<div class="event-wrapper" style="white-space: nowrap; display:
table; color: rgb(71, 71, 71); font-family: 'Helvetica Neue',
Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 16.7999992370605px; orphans:
auto; text-align: start; text-indent: 0px; text-transform: none;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">
<div class="event-row" style="display: table-row;"><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: table-cell; font-family: Consolas, 'Andale Mono WT',
'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter',
'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation
Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier,
monospace; background-color: rgb(238, 238, 238);"> </span>
<div id="defect-event-19722365-3" class="event-header with-event
main-event code-event event-set-0 dead_error_line
selected-event grouped-event" style="color: rgb(221, 68, 34);
overflow: hidden; padding: 2px 2px 2px 25px; white-space:
normal; display: table-cell; border: 1px solid rgb(125, 154,
170); cursor: pointer; background-image:
url(https://scan5.coverity.com:8443/images/sourcebrowser/marker-code-main-event.png);
background-color: rgb(252, 242, 238); background-position: 1px
2px; background-repeat: no-repeat;"><span class="defect-text"
style="display: block; margin-bottom: 2px;">CID 1255327 (#1
of 1): Logically dead code (DEADCODE)</span><span
class="event-tag" style="font-weight: 700;">dead_error_line:</span> <span
class="description">Execution cannot reach this statement:<span
class="Apple-converted-space"> </span><span class="code"
style="font-family: Consolas, 'Andale Mono WT', 'Andale
Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu
Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono',
'Nimbus Mono L', Monaco, 'Courier New', Courier,
monospace, serif; font-size: 1em; white-space: pre-line;
word-wrap: break-word; color: rgb(0, 0, 0); padding-left:
3px; padding-right: 3px;">cache_aligment = <span
class="cpp_literal" style="color: inherit; font-style:
inherit; font-weight: inherit;">8U</span>;</span>.</span></div>
</div>
</div>
<div id="main-source-line-1541" class="source-line with-event
main-event code-event event-set-0 dead_error_line grouped-event"
style="color: rgb(0, 0, 0); font-family: Consolas, 'Andale Mono
WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter',
'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono',
'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace;
height: 1.3em; white-space: nowrap; font-size: 12px; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: 16.7999992370605px; orphans: auto;
text-align: start; text-indent: 0px; text-transform: none; widows:
auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);"><span class="scm"
style="color: rgb(191, 191, 191); vertical-align: top; display:
inline-block; background-color: rgb(238, 238, 238);"></span><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: inline-block; background-color: rgb(238, 238, 238);">1541</span> <span
id="xref-L-3801513-1070-3" class="xref xref-L-3801513-274"
style="cursor: pointer; border-width: 1px; border-style: solid;
border-color: transparent transparent rgb(204, 204, 204);">cache_aligment</span> = <span
id="xref-632187817-0-2" class="xref xref-175956685"
style="cursor: pointer; border-width: 1px; border-style: solid;
border-color: transparent transparent rgb(204, 204, 204);">CPU_ALIGNMENT</span>;</div>
<br>
Josh .. can you check if CodeSonar flagged this?<br>
<pre class="moz-signature" cols="72">--
Joel Sherrill, Ph.D. Director of Research & Development
<a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a> On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985</pre>
</body>
</html>