diff options
author | Richard Genoud <richard.genoud@gmail.com> | 2012-12-13 00:47:36 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-02-04 09:05:46 -0500 |
commit | fb7e16cc1c1f5d5bb212118b89218b2e706226b2 (patch) | |
tree | 701e85f23b11cc71764b3332a7290f4eaaea7647 /fs/fat/fat.c | |
parent | c7db645a6b0e6ed8ffa9c53a5c41430b95c20bcc (diff) | |
download | u-boot-imx-fb7e16cc1c1f5d5bb212118b89218b2e706226b2.zip u-boot-imx-fb7e16cc1c1f5d5bb212118b89218b2e706226b2.tar.gz u-boot-imx-fb7e16cc1c1f5d5bb212118b89218b2e706226b2.tar.bz2 |
FAT: use toupper/tolower instead of recoding them
toupper/tolower function are already declared, so use them.
Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'fs/fat/fat.c')
-rw-r--r-- | fs/fat/fat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/fat/fat.c b/fs/fat/fat.c index 25d3318..7bb5dba 100644 --- a/fs/fat/fat.c +++ b/fs/fat/fat.c @@ -33,6 +33,7 @@ #include <part.h> #include <malloc.h> #include <linux/compiler.h> +#include <linux/ctype.h> /* * Convert a string to lowercase. @@ -40,7 +41,7 @@ static void downcase(char *str) { while (*str != '\0') { - TOLOWER(*str); + *str = tolower(*str); str++; } } |