Home
last modified time | relevance | path

Searched hist:cb940c7ede85994847c80f4300f2f7eac6e94c48 (Results 1 – 2 of 2) sorted by relevance

/rk3399_rockchip-uboot/fs/fat/
H A Dfat_write.ccb940c7ede85994847c80f4300f2f7eac6e94c48 Thu Dec 13 03:30:10 UTC 2012 Richard Genoud <richard.genoud@gmail.com> 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>
H A Dfat.ccb940c7ede85994847c80f4300f2f7eac6e94c48 Thu Dec 13 03:30:10 UTC 2012 Richard Genoud <richard.genoud@gmail.com> 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>