staging: csr: remove CsrStrChr()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jul 2012 21:42:02 +0000 (14:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jul 2012 21:42:02 +0000 (14:42 -0700)
No one was calling it, so remove it.

Cc: Mikko Virkkilä <mikko.virkkila@bluegiga.com>
Cc: Lauri Hintsala <Lauri.Hintsala@bluegiga.com>
Cc: Riku Mettälä <riku.mettala@bluegiga.com>
Cc: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/csr/csr_util.c
drivers/staging/csr/csr_util.h

index f7fd3fb7b5069d360ced5ee3dc29f5abf2aca0e1..fa6025a59c98616d05b796c7ef22fadfd0427f46 100644 (file)
@@ -50,11 +50,6 @@ size_t CsrStrLen(const char *string)
     return strlen(string);
 }
 EXPORT_SYMBOL_GPL(CsrStrLen);
-
-char *CsrStrChr(const char *string, char c)
-{
-    return strchr(string, c);
-}
 #endif
 
 s32 CsrVsnprintf(char *string, size_t count, const char *format, va_list args)
index 95030fa29ce73e72a7b14ed6327a9a134b5e13d3..024b520a1bb9eb8cdd7ed5b1059c7ed4b84e3d55 100644 (file)
@@ -28,11 +28,9 @@ void CsrUInt16ToHex(u16 number, char *str);
 /*------------------------------------------------------------------*/
 #ifdef CSR_USE_STDC_LIB
 #define CsrMemCpy memcpy
-#define CsrStrChr strchr
 #define CsrStrLen strlen
 #else /* !CSR_USE_STDC_LIB */
 void *CsrMemCpy(void *dest, const void *src, size_t count);
-char *CsrStrChr(const char *string, char c);
 size_t CsrStrLen(const char *string);
 #endif /* !CSR_USE_STDC_LIB */
 s32 CsrVsnprintf(char *string, size_t count, const char *format, va_list args);