aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorChaehyun Lim <chaehyun.lim@gmail.com>2015-08-10 11:33:13 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-14 18:39:52 -0700
commitff96dfb5b1739c84587be23f113078850a0cef4c (patch)
tree26d80db351a69dddc3668d6b0eda973fe12af61c /drivers/staging
parentstaging: wilc1000: remove commented code (diff)
downloadlinux-dev-ff96dfb5b1739c84587be23f113078850a0cef4c.tar.xz
linux-dev-ff96dfb5b1739c84587be23f113078850a0cef4c.zip
staging: wilc1000: use strlen instead of WILC_strlen
Use strlen instead of WILC_strlen that is a custom function. 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/coreconfigurator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging/wilc1000/coreconfigurator.c
index a88b796fb6c9..c59d9ba298cc 100644
--- a/drivers/staging/wilc1000/coreconfigurator.c
+++ b/drivers/staging/wilc1000/coreconfigurator.c
@@ -1577,8 +1577,8 @@ s32 further_process_response(u8 *resp,
case WID_ADR:
create_mac_addr(cfg_str, resp + idx);
- WILC_strncpy(pstrWIDresult->ps8WidVal, cfg_str, WILC_strlen(cfg_str));
- pstrWIDresult->ps8WidVal[WILC_strlen(cfg_str)] = '\0';
+ WILC_strncpy(pstrWIDresult->ps8WidVal, cfg_str, strlen(cfg_str));
+ pstrWIDresult->ps8WidVal[strlen(cfg_str)] = '\0';
break;
case WID_IP: