From: Tom Rini Date: Mon, 4 Feb 2013 11:42:02 -0500 Subject: [U-Boot] [U-Boot, PATCHv2] FAT: remove ifdefs to make the code more readable In-Reply-To: <1355405410-2783-1-git-send-email-richard.genoud@gmail.com> References: <1355405410-2783-1-git-send-email-richard.genoud@gmail.com> Message-ID: <20130204164202.GG27802@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Dec 13, 2012 at 03:30:10AM -0000, 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 discarded > > and bonus, now the code compiles even if CONFIG_SUPPORT_VFAT is not > defined. > > Signed-off-by: Richard Genoud Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: