Re: [U-Boot] [U-Boot, PATCHv2] FAT: remove ifdefs to make the code more readable

2013-02-04 Thread Tom Rini
On Thu, Dec 13, 2012 at 03:30:10AM -, Richard Genoud wrote: > ifdefs in the code are making it harder to read. > The use of simple if(vfat_enabled) makes no more code and is cleaner. > (the code is discarded by the compiler instead of the preprocessor.) > NB: if -O0 is used, the code won't be

[U-Boot] [PATCHv2] FAT: remove ifdefs to make the code more readable

2012-12-13 Thread Richard Genoud
ifdefs in the code are making it harder to read. The use of simple if(vfat_enabled) makes no more code and is cleaner. (the code is discarded by the compiler instead of the preprocessor.) NB: if -O0 is used, the code won't be discarded and bonus, now the code compiles even if CONFIG_SUPPORT_VFAT i