mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 03:06:50 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7d2b212f88
commit
ff96dfb5b1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user