On Thursday 02 August 2012 03:16:18 Marek Vasut wrote: > Dear Mike Frysinger, > > > On Tuesday 31 July 2012 02:37:01 Lukasz Majewski wrote: > > > --- /dev/null > > > +++ b/common/cmd_dfu.c > > > > > > + static char *s = "dfu"; > > > > no need for this to be static > > It can be pulled out of the function and be made into const static
err, there's no point. the static markings here are for the pointer "s", not the stuff it's pointing to "dfu". use: char s[] = "dfu"; and it'll probably all optimize away correctly -mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot