From patchwork Mon Aug 10 02:33:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 6979151 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 774989F373 for ; Mon, 10 Aug 2015 02:33:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ABFAA2070A for ; Mon, 10 Aug 2015 02:33:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C59B9206E6 for ; Mon, 10 Aug 2015 02:33:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752621AbbHJCdt (ORCPT ); Sun, 9 Aug 2015 22:33:49 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:36847 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752509AbbHJCdk (ORCPT ); Sun, 9 Aug 2015 22:33:40 -0400 Received: by pacrr5 with SMTP id rr5so92580207pac.3 for ; Sun, 09 Aug 2015 19:33:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Nb9YgCAOcoDNLuPZYHi17tl4R35J1Kj1dq+Xc04xtJY=; b=LIavxWDRJtMlOXijbYu7q/hF8yfCN9Muc1bIt+qQ93s2jh5OXO+UQJkhzGztV6DgyB TqO4A2wmbjU1Vl1y4Fz/Bu9CLS7XMdmZBKlp6ylh0kigoFraKZ4ZRYY1wxMiYHA3nr+x WnUF3UmmlmBCMxfkJx6IsZqXvOXJZDdIA6p3uXRCTfkhyMgp2BEtpDZ1r19twcLDgzYe hiAXTyWFvm82CaFEV1zYoNBOI+LeqkPu2tpO8UU5sWV6BxQQwMMOasMaFxvkfoBNVrx+ 3i/vYUiIhPl1xJi/YeBenZUyyMlhXIvvX+MTO6U+WBtGFROIXCUOXx/hDymk7O2rXFrX ReSA== X-Received: by 10.66.136.172 with SMTP id qb12mr40471032pab.84.1439174020231; Sun, 09 Aug 2015 19:33:40 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id k10sm17650088pbq.63.2015.08.09.19.33.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 09 Aug 2015 19:33:39 -0700 (PDT) From: Chaehyun Lim To: gregkh@linuxfoundation.org Cc: johnny.kim@atmel.com, rachel.kim@atmel.com, dean.lee@atmel.com, chris.park@atmel.com, linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, Chaehyun Lim Subject: [PATCH 04/11] staging: wilc1000: Use strncpy instead of WILC_strncpy Date: Mon, 10 Aug 2015 11:33:15 +0900 Message-Id: <1439174002-7365-4-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1439174002-7365-1-git-send-email-chaehyun.lim@gmail.com> References: <1439174002-7365-1-git-send-email-chaehyun.lim@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use strncpy instead of WILC_strncpy that is a custom function Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging/wilc1000/coreconfigurator.c index c59d9ba..a950d40 100644 --- a/drivers/staging/wilc1000/coreconfigurator.c +++ b/drivers/staging/wilc1000/coreconfigurator.c @@ -1577,7 +1577,7 @@ s32 further_process_response(u8 *resp, case WID_ADR: create_mac_addr(cfg_str, resp + idx); - WILC_strncpy(pstrWIDresult->ps8WidVal, cfg_str, strlen(cfg_str)); + strncpy(pstrWIDresult->ps8WidVal, cfg_str, strlen(cfg_str)); pstrWIDresult->ps8WidVal[strlen(cfg_str)] = '\0'; break;