aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorChaehyun Lim <chaehyun.lim@gmail.com>2015-08-10 11:33:16 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-14 18:39:52 -0700
commit24e326ea2946863ea79d3b3af29815f5d49092b0 (patch)
tree8ad490f7df983be377aba7cf6a54266c055074b8 /drivers/staging
parentstaging: wilc1000: Use strncpy instead of WILC_strncpy (diff)
downloadlinux-dev-24e326ea2946863ea79d3b3af29815f5d49092b0.tar.xz
linux-dev-24e326ea2946863ea79d3b3af29815f5d49092b0.zip
staging: wilc1000: remove WILC_strncpy function
Remove WILC_strncpy function that is changed to strncpy. Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/wilc1000/wilc_strutils.c10
-rw-r--r--drivers/staging/wilc1000/wilc_strutils.h14
2 files changed, 0 insertions, 24 deletions
diff --git a/drivers/staging/wilc1000/wilc_strutils.c b/drivers/staging/wilc1000/wilc_strutils.c
index 205a06a5a116..337e62ff3c79 100644
--- a/drivers/staging/wilc1000/wilc_strutils.c
+++ b/drivers/staging/wilc1000/wilc_strutils.c
@@ -17,16 +17,6 @@ void WILC_memcpy_INTERNAL(void *pvTarget, const void *pvSource, u32 u32Count)
}
-/*!
- * @author syounan
- * @date 18 Aug 2010
- * @version 1.0
- */
-char *WILC_strncpy(char *pcTarget, const char *pcSource,
- u32 u32Count)
-{
- return strncpy(pcTarget, pcSource, u32Count);
-}
s32 WILC_strncmp(const char *pcStr1, const char *pcStr2,
u32 u32Count)
diff --git a/drivers/staging/wilc1000/wilc_strutils.h b/drivers/staging/wilc1000/wilc_strutils.h
index 7c38e14fc397..86728d203f71 100644
--- a/drivers/staging/wilc1000/wilc_strutils.h
+++ b/drivers/staging/wilc1000/wilc_strutils.h
@@ -59,20 +59,6 @@ static WILC_ErrNo WILC_memcpy(void *pvTarget, const void *pvSource, u32 u32Count
}
-/*!
- * @brief copies the contents of source string into the target string
- * @param[in] pcTarget the target string buffer
- * @param[in] pcSource the source string the will be copied
- * @param[in] u32Count copying will proceed until a null character in pcSource
- * is encountered or u32Count of bytes copied
- * @return value of pcTarget
- * @note this function repeats the functionality of standard strncpy
- * @author syounan
- * @date 18 Aug 2010
- * @version 1.0
- */
-char *WILC_strncpy(char *pcTarget, const char *pcSource,
- u32 u32Count);
/*!
* @brief Compares two strings up to u32Count characters