diff options
author | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-08-14 12:48:47 -0400 |
---|---|---|
committer | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-12-22 06:25:21 -0500 |
commit | 1ca7087e59cba48a58bf5e6594a67e8ccbead7e2 (patch) | |
tree | 1053552a79c9b7dca4305048a08c8ebe94858da8 /fs/befs | |
parent | 4c7df6455923ac9bc78379ed07f34477f7ef1b4d (diff) |
befs: fix typos in linuxvfs.c
Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Diffstat (limited to 'fs/befs')
-rw-r--r-- | fs/befs/linuxvfs.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 647a276eba56..42a566d37298 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c | |||
@@ -491,13 +491,10 @@ fail: | |||
491 | } | 491 | } |
492 | 492 | ||
493 | /* | 493 | /* |
494 | * UTF-8 to NLS charset convert routine | 494 | * UTF-8 to NLS charset convert routine |
495 | * | 495 | * |
496 | * | 496 | * Uses uni2char() / char2uni() rather than the nls tables directly |
497 | * Changed 8/10/01 by Will Dyson. Now use uni2char() / char2uni() rather than | ||
498 | * the nls tables directly | ||
499 | */ | 497 | */ |
500 | |||
501 | static int | 498 | static int |
502 | befs_utf2nls(struct super_block *sb, const char *in, | 499 | befs_utf2nls(struct super_block *sb, const char *in, |
503 | int in_len, char **out, int *out_len) | 500 | int in_len, char **out, int *out_len) |
@@ -585,8 +582,9 @@ befs_nls2utf(struct super_block *sb, const char *in, | |||
585 | wchar_t uni; | 582 | wchar_t uni; |
586 | int unilen, utflen; | 583 | int unilen, utflen; |
587 | char *result; | 584 | char *result; |
588 | /* There're nls characters that will translate to 3-chars-wide UTF-8 | 585 | /* |
589 | * characters, a additional byte is needed to save the final \0 | 586 | * There are nls characters that will translate to 3-chars-wide UTF-8 |
587 | * characters, an additional byte is needed to save the final \0 | ||
590 | * in special cases */ | 588 | * in special cases */ |
591 | int maxlen = (3 * in_len) + 1; | 589 | int maxlen = (3 * in_len) + 1; |
592 | 590 | ||
@@ -625,7 +623,7 @@ befs_nls2utf(struct super_block *sb, const char *in, | |||
625 | return i; | 623 | return i; |
626 | 624 | ||
627 | conv_err: | 625 | conv_err: |
628 | befs_error(sb, "Name using charecter set %s contains a charecter that " | 626 | befs_error(sb, "Name using character set %s contains a character that " |
629 | "cannot be converted to unicode.", nls->charset); | 627 | "cannot be converted to unicode.", nls->charset); |
630 | befs_debug(sb, "<--- %s", __func__); | 628 | befs_debug(sb, "<--- %s", __func__); |
631 | kfree(result); | 629 | kfree(result); |