]> git.sur5r.net Git - u-boot/commit
FAT: remove ifdefs to make the code more readable
authorRichard Genoud <richard.genoud@gmail.com>
Thu, 13 Dec 2012 03:30:10 +0000 (03:30 +0000)
committerTom Rini <trini@ti.com>
Mon, 4 Feb 2013 14:05:47 +0000 (09:05 -0500)
commitcb940c7ede85994847c80f4300f2f7eac6e94c48
tree356a86c002501b057f37729eec41525d230ab7cb
parentfb7e16cc1c1f5d5bb212118b89218b2e706226b2
FAT: remove ifdefs to make the code more readable

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 is not
defined.

Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
fs/fat/fat.c
fs/fat/fat_write.c