Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Useless Assignment  at pvmfrag.c:219

Categories: LANG.STRUCT.UA
Warning ID: 230.28866
Similar Warnings: 230.28867
Procedure: fr_snew
Trace: view
Modified: Thu Nov 26 11:28:17 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     
LineSource
  /kat0/fletcher/SATE/2010/pvm3/src/pvmfrag.c
  Enter fr_snew
209 struct frag * 
210 fr_snew(cp, len) 
211         char *cp;       /* buffer */ 
212         int len;        /* buffer size */ 
213 {
214         struct frag *fp;
215  
216         if (!(fp = frag_get_header()))
217                 goto oops;
218  
219         fp->fr_link = fp->fr_rlink = 0;     /* Useless Assignment */
220         fp->fr_dat = fp->fr_buf = cp;
221         fp->fr_max = fp->fr_len = len;
222         fp->fr_u.ref = 1;
223         fp->fr_u.dab = 0;
224         fp->fr_u.spr = 0;
225         fp->fr_rip = 0;
226         return fp;
227  
228 oops: 
229         pvmlogerror("fr_snew() can't get memory\n");
230         pvmbailout(0);
231         return (struct frag*)0;   /* Unreachable Computation (ID: 231.28868) */
232 } 




Change Warning 230.28866 : Useless Assignment

Because they are very similar, this warning shares annotations with warning 230.28867.

Priority:
State:
Finding:
Owner:
Note: