[ofw] [PATCH] remove useless variable initialization

Hefty, Sean sean.hefty at intel.com
Wed Sep 1 10:03:53 PDT 2010


> > I don't understand what is the problem with the variable
> > initialization. I think it's safer and more code robust to set a
> > default value to variable.
> >
> > I know it is theological argument, so I prefer to leave it to the
> > developer decision, if the code is valid.
> 
> Extra instructions executed for no purpose as the results are never used
> and over-written in the next statement. Additionally extra code space
> consumed by useless instructions - granted it is not that much.

Unneeded initialization should be removed.



More information about the ofw mailing list