Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Redundant Condition  at pmsg.c:528

Categories: LANG.STRUCT.RC CWE:570 CWE:571
Warning ID: 203.28835
Procedure: pmsg_extend
Trace: view
Modified: Thu Nov 26 11:28:12 2009   show details
 
Priority: None
State: None
Finding: None
Owner: None
  edit properties

Legend [ X ]
Warning Location
Contributes
Parse Error
Other Warning
Two or More Loop Iterations
On Execution Path
Comment
Macro
Preprocessor
Include
Keyword
Preprocessed Away

Source  |  Language: C Hide Legend     
ProblemLineSource
   /kat0/fletcher/SATE/2010/pvm3/src/pmsg.c
   Enter pmsg_extend
 523 pmsg_extend(mp) 
 524         struct pmsg *mp;
 525 {
 526         struct frag *fp;
 527  
Always True: fp != 0528         if (fp = fr_new(pvmfrgsiz)) {     /* Redundant Condition */
 529                 fp->fr_dat += MAXHDR;
 530                 LISTPUTBEFORE(mp->m_frag, fp, fr_link, fr_rlink);
 531                 return 0;
 532         }
 533         return PvmNoMem;   /* Unreachable Computation (ID: 204.28836) */
 534 } 




Change Warning 203.28835 : Redundant Condition

Priority:
State:
Finding:
Owner:
Note: