]> git.sur5r.net Git - u-boot/blobdiff - lib_generic/string.c
mmc: Remove return from mmc_init for non SD 2.0 compatible cards.
[u-boot] / lib_generic / string.c
index dea4d69a9b394d1c46958fc402ac825e6fbeb7f2..181eda614993167894f9a172d81c1b713cd30e2b 100644 (file)
@@ -21,7 +21,7 @@
 #include <malloc.h>
 
 
-#ifndef __HAVE_ARCH_STRNICMP
+#if 0 /* not used - was: #ifndef __HAVE_ARCH_STRNICMP */
 /**
  * strnicmp - Case insensitive, length-limited string comparison
  * @s1: One string
@@ -263,7 +263,7 @@ char * strdup(const char *s)
 #ifndef __HAVE_ARCH_STRSPN
 /**
  * strspn - Calculate the length of the initial substring of @s which only
- *     contain letters in @accept
+ *     contain letters in @accept
  * @s: The string to be searched
  * @accept: The string to search for
  */
@@ -380,7 +380,7 @@ char *strswab(const char *s)
                return (NULL);
        }
 
-       for (p=(char *)s, q=p+1; (*p != '\0') && (*p != '\0'); p+=2, q+=2) {
+       for (p=(char *)s, q=p+1; (*p != '\0') && (*q != '\0'); p+=2, q+=2) {
                char  tmp;
 
                tmp = *p;